SONAR-3437, SONAR-5189 Store measures in a persistit cache