Revert "Make the hash processes vals instead of defs"

This reverts commit 9e1dc8f8d1470e26f6dd09af9585518a4f3d3e57.

This was a bad idea since the same MessageDigest could be accessed
parallel in different threads.