Add compileTo()
Creating all the functions is fast even for some hundreds of functions. But each function will create a temporary file, write it to task, load it and than delete it. And this is done for every page-request - while the output is most likely identical.
So a simple idea is to compile all loaded Statements into a single file, which than can be shipped and required, so no dynamic creation is needed anymore.