Stop using TaskTypes as keys!
instead store hashes, this makes lookups slightly more complex but greatly reduces storage requirements.
clean up the old lookup methods
Use smallvecs, add tracing and share more implementation details in the db lookup methods
Add some safety to the new APIs and resolve a small race condition
fix some clippy issues
Remove obsolete info size metrics
revert a feature flag flip
fix stats collection and improve logic shaing
restore the scratch buffer
typo
fix silly bug
port back some simplifications
port back another batch of simplifications that landed on the wrong branch