Added prefetch method for async caching of templates