GTNPORTAL-3569: Reduce the performance impact of the cache of the TemplateService in a cluster