added cache support to TemplateBuilder