Allow template map to be cached