Fixed template caching