Mutlithreaded hashing, querying