[CLEANUP] Reduce cache gets in MarkerBasedTemplateService