cache template loaded from disk