Cached template loader