Add a "Map from digest to void*" abstraction, since we already faked it in 3 places...