cached template loader