Remove unused hashes