Cache template as well