[M]Enhanced template cache