minhash performance improvement