No, that's basically not possible.
What is possible is to get the result you want with workarounds: for example, turn your program into a local "server" which waits for requests (done from executing a 5-lines script), and serves them by doing the job of execute()
. It's certainly not the most elegant solution but it lets all the execute()
be done by the same process, with (after a while) the same speed-ups that you measured.