SONAR-5334 Fix performance issue with localStorage on Safari