adding Zsolt's xorHashes optimalization