SONAR-5189 Reintroduce a memory cache for measure in decorators