The alternative would be to recompile it every run of the function?