SONAR-5141 Improve performance of technical debt measures decorator