Changed unique hash to be sha1 of concatenated ip address and search query with spaces removed.