SSD tree cache KV cache
Since you’re saving the KV cache to an SSD, wouldn’t it be a good idea to create a database tree, perhaps using ‘Patricia trie’ or RocksDB? After all, system prompts are constantly repeated, and saving most of the work you’ve done would save a huge amount of inference.
https://github.com/canapaio/ds4
tree https://github.com/canapaio/ds4/blob/main/READMEtree.md
This idea sounds similar to SGLang's radix cache
My idea is that locally, by frequently reusing the same prompts across multiple agents that start identically, we can leverage the KV cache to skip most of the initial inference overhead.