perf enhancements in generated scheduled fn