Calculate hashes on the fly