SONAR-2291 fix performance issue when computing file hashes