Cache parts of templates