hash: remove all disk-caching parts
hash: use errno for error reporting
hash: simplified hash API

This finalizes patchset that prevents on-disk data entries from being
cached.
Current cache implementation looks excessive and unnecessary.

Suggested by: zbr@