Only compute hashes once