Make template lookup caching configurable for template development

fixes #139