Fixed TemplateEngineContext being created with every execution.