Basic template caching.