Store hashes as HashCode for type-safety