Memoizing the current hashes per class