SONAR-5528 Improve performance of persistit serialization for highlighting