AWS described a distributed KV caching setup for teams that self-host large language models, together with a skill in its Agent Toolkit that configures it from inside a coding agent. The problem it targets is repeated prefill: when a long conversation is resumed, the GPU that picks up the request holds none of the earlier context, so it recomputes key-value attention states for the whole history before producing a token. AWS uses a legal assistant accumulating hundreds of thousands of tokens of case history as its example, where a resumed thread can take minutes to answer.
The fix is to extend each server's local KV cache with a shared tier running on Amazon ElastiCache beside the GPU fleet, so any server can reuse cached state across sessions, routing changes and server failures, and state can persist for days. AWS states that this can cut inference cost by up to 40% and time to first token by up to 80%.
The new skill walks a coding agent through deciding whether a workload benefits, sizing and pricing a cache for test or production, and troubleshooting failed transfers; AWS says it works with Kiro, Claude Code, OpenAI Codex and other agents that support Agent Skills. It also reads what it can inspect from the environment, such as EFA interface counts, and asks only for details it cannot see, including engine, model, tensor-parallel size, KV data type, server price and prompt repetition rate.
Before any infrastructure is deployed, AWS's KVTrace tool estimates the benefit from the user's own model and traffic at no extra charge. AWS notes the gains depend on model choice, traffic pattern and prompt routing, which is why the estimate step comes first.
Our takeThis turns a latency problem into a cache-coherence one: once any server can reuse any prefix, you need to know which node holds which KV state and what happens when routing shifts or a node fails. AWS's own framing makes the 40% and 80% figures workload-dependent, so the reusable part is KVTrace's pre-deployment estimate from your traffic, not the headline.