Prompt caching is a standard cost-saving tool for LLM applications, but it fails silently when tool calls outlast the cache lifetime. A new architecture called AXI, developed by Rajnish Choubey and tested by Shalendra Gaur, demonstrates that holding application state and rebuilding short prompts at every step can eliminate cache-related costs entirely. The approach is particularly relevant for agentic workflows where pauses between steps can age the prompt prefix out of the cache.

The Cache Expiration Problem

Anthropicโ€™s Lance Martin highlighted in September 2026 that a cache read costs a fraction of a full input token, but only if the prefix remains stable. If a tool call or subagent runs past the five-minute cache lifetime, the parentโ€™s cache expires before the result returns. The next turn then pays 1.25 times the normal input price to rewrite the cache, or double with the one-hour cache option. NVIDIAโ€™s Ishan Dhanani and Matej Kosec confirmed this from the serving side, noting that a 2 to 30-second pause can age an agentโ€™s prefix out of the cache.

AXIโ€™s State-First Approach

AXI changes the fundamental unit of work: instead of maintaining a growing chat history, the application holds the exact state and rebuilds a short prompt from it at every step. The model proposes a change, and a deterministic gate admits or refuses it. This means the prompt size depends on the state, not the history. Consequently, the prompt does not rely on a warm prefix, so pauses of any length do not trigger cache expiration penalties.

Benchmark Results

In a 1,500-step job on Gemini 3.8 Flash, AXI used 2,824 prompt tokens at every step with a median time to first token of 2.27 seconds. A comparable kept-chat approach with prompts over 500,000 tokens achieved 99.3% cache hits but still computed 5,419 tokens per exact step versus AXIโ€™s 3,108, with a median time to first token of 9.13 seconds. Cost per verified step on a 400-turn job was $0.0014 with AXI, compared to $0.0148 with a warm cache and $0.0870 with a cold cache.

Key Takeaways

  • Cache expiration is a silent cost multiplier for long-running agent jobs; a 61x cost increase is possible if the cache goes cold.
  • AXIโ€™s state-first architecture eliminates cache dependency by rebuilding short prompts, ensuring consistent token counts.
  • For workloads with long tool calls, rebuilding from state can be cheaper than managing cache warm-up and expiration.
  • Developers should benchmark cost per verified step, cache hit rate, and time to first token to determine if their workload benefits from held-state prompts.

The Bottom Line

If your agent workflow involves long-running tool calls, stop fighting cache expiration and start managing state; the simplicity of rebuilding short prompts often outweighs the theoretical savings of a fragile cache.