cache for hashes