Cache metadata in TemplateProviderInfo