cache loaded templates