Merging digest's siblings.
Rewrote optimized lookup by offset.