Use md5 hashing on query hashes to reduce the size of the strings
Clean up directory cache