The Research Report
Don't Break the Cache: Prompt Caching Cuts Agent API Costs by Up to 80%
Your AI agent runs 40 tool calls in a session. Each call appends results to the context window. By turn 30, you're sending 15,000 tokens back to the API on every single request — and paying full price for tokens the model already processed three turns ago.
That's the problem. Prompt caching is the fix. And until now, nobody had systematically measured how well it actually works for agentic workloads.
A January 2026 paper from researchers at PricewaterhouseCoopers changes that. They ran the first cross-provider evaluation of prompt caching on multi-turn agent sessions. The results are striking: 41-80% cost reduction and 13-31% faster time-to-first-token across OpenAI, Anthropic, and Google.
But the headline numbers aren't the whole story. The strategy you use matters just as much as whether you cache at all.
What Prompt Caching Actually Does
When an LLM processes your prompt, it computes attention key-value tensors during what's called the "prefill" phase. These KV tensors capture the contextual meaning of your input. Normally, the model recomputes them from scratch on every API call — even if 90% of your prompt is identical to the last call.
Prompt caching skips that redundant work. The provider stores the KV tensors from your prompt prefix and reuses them on subsequent requests that share the same prefix. You pay less for cached tokens and get a response faster.
All three major providers support this. OpenAI does it automatically for prompts over a minimum token threshold. Anthropic gives you explicit cache breakpoints to control what gets cached. Google offers both implicit and explicit caching modes. The mechanics differ, but the core idea is the same: don't recompute what you've already computed.
The Problem with Agents
Prompt caching works great for chatbot workloads where your system prompt stays fixed and only the user message changes. Agents break this model.
An agent session isn't a single request. It's a chain of dozens of API calls. Each tool call adds results to the context. The conversation grows with every turn. Tool outputs contain session-specific data that won't help future requests. Dynamic content gets interleaved with your stable system prompt.
This creates a caching dilemma. Cache too much, and you're writing cache entries for volatile content that will never be hit again. Cache too little, and you're paying full price on tokens you could have cached. Nobody had tested where the sweet spot was — until now.
The Study
The researchers evaluated three caching strategies across four flagship models:
- GPT-5.2 (OpenAI)
- GPT-4o (OpenAI)
- Claude Sonnet 4.5 (Anthropic)
- Gemini 2.5 Pro (Google)
They ran all experiments on DeepResearch Bench, a benchmark where agents autonomously execute web search tool calls to answer complex research questions. Every session involved 10,000-token system prompts. Over 500 agent sessions total.
The three strategies they compared:
Full context caching — let the provider cache everything automatically. Simplest to implement. No manual boundary control.
System prompt only caching — cache just the system prompt. Put any dynamic content after the cacheable prefix so the cache stays stable across turns.
Exclude dynamic tool results — explicitly exclude tool call results from the cache block. Cache the system prompt and any stable instructions, but skip the volatile tool output.
They also ran an ablation study across prompt sizes from 500 to 50,000 tokens and tool call counts from 3 to 50.
The Numbers
Cost reduction by model (best cache mode):
- GPT-5.2: 79.6% reduction
- Claude Sonnet 4.5: 78.5% reduction
- GPT-4o: 45.9% reduction
- Gemini 2.5 Pro: 41.4% reduction
TTFT improvement by model (best cache mode):
- GPT-4o: 30.9% faster
- Claude Sonnet 4.5: 22.9% faster
- GPT-5.2: 13.0% faster
- Gemini 2.5 Pro: 6.1% faster (not statistically significant)
The spread is wide. GPT-5.2 nearly hits 80% cost savings. Gemini barely clears 40%. The researchers note that provider-specific caching implementation details — minimum token thresholds, TTL durations, pricing structures — drive much of this variance.
The Counterintuitive Finding
Here's where it gets interesting. You'd think caching more would always be better. It's not.
Naive full-context caching can actually increase latency. When you let the provider cache everything, dynamic tool calls and their results trigger cache writes for content that will never be reused. Those writes take time. If the cache miss rate is high enough, the overhead of writing useless cache entries exceeds the savings from the few hits you get.
System prompt only caching performed the most consistently across both cost and latency. By caching just the stable 10,000-token system prompt and keeping everything else outside the cache block, you get maximum hit rates on the content that actually repeats across turns.
The practical takeaway: don't let providers auto-cache your entire agent context. Control the cache boundary yourself. Cache the stable prefix. Leave dynamic content out.
What Scales and What Doesn't
The ablation study tested prompt sizes from 500 to 50,000 tokens and tool call counts from 3 to 50.
Cost benefits scale linearly with prompt size. Bigger system prompts mean more cached tokens per request, which means more savings. Below the provider's minimum token threshold (typically 1,024-4,096 tokens), caching provides no benefit at all.
TTFT benefits also scale linearly — but only after you clear the minimum token threshold. Below it, caching doesn't activate.
Tool call count had less impact on cache effectiveness than prompt size. More tool calls mean more total requests per session, which means more cache hits on the stable prefix. But the per-request savings stayed roughly constant.
Provider Differences That Matter
Each provider handles caching differently, and those differences affect your strategy.
OpenAI caches automatically on GPT-4o and newer models. Cache hits require exact prefix matches. Minimum threshold is around 1,024 tokens. TTL is 5-10 minutes of inactivity. You don't control the cache boundary — you control it by controlling what goes in the prompt prefix.
Anthropic gives you explicit cache breakpoints. You tell the API exactly which sections of your prompt to cache. TTL is configurable up to 24 hours. This gives you the most control for agent workloads where you need to cache the system prompt and exclude dynamic tool results.
Google offers implicit caching (automatic, no guaranteed savings) and explicit context caching (developer-created, guaranteed discounts). The explicit option gives you more control but requires more setup.
The researchers found that Anthropic's explicit breakpoint control made it the easiest provider for implementing strategic cache boundaries. OpenAI's automatic caching worked well but offered less control. Google's dual-mode approach required careful configuration to get consistent results.
Practical Implementation Guide
Based on the paper's findings, here's how to implement prompt caching for agent workloads:
Put dynamic content at the end of your system prompt. Timestamps, session IDs, user-specific context — all of it goes after a stable cacheable prefix. Use a UUID or marker as a cache boundary. Everything before it stays static across turns. Everything after it changes.
Exclude tool results from the cache block. Tool outputs are session-specific. Caching them wastes write overhead for cache entries that will never be hit again. If your provider supports explicit cache control (Anthropic), keep tool results outside the cache breakpoints.
Don't use naive full-context caching for agent workloads. It's the easiest option but the worst performing. The overhead of writing cache entries for dynamic content can eat your latency savings entirely.
Test TTFT in your own environment. Cost savings are consistent across providers. Latency improvements are not. The paper found 13-31% TTFT improvement on best cache modes, but the variance is high. What works on DeepResearch Bench may not match your workload.
Check the minimum token threshold. If your system prompt is under 1,024 tokens, caching won't activate on most providers. The biggest savings come from large system prompts (10,000+ tokens) that stay stable across many tool call turns.
The Bigger Picture
This paper fills a real gap. KV cache optimization is well-studied at the inference level — PagedAttention, token compression, shared prefix optimization. But provider-managed prompt caching through APIs has gotten almost no research attention for agentic workloads.
That's a problem because agents are where the costs pile up. A single-turn chatbot call processes a few thousand tokens. A 40-turn agent session processes tens of thousands of tokens per request, with the context growing on every turn. The economics are fundamentally different.
The paper's title — "Don't Break the Cache" — captures the core insight. Cache stability is fragile in agentic workloads. Every piece of dynamic content you inject into your prompt prefix breaks the cache. Every tool result you include in the cache block wastes a write. The job isn't just enabling caching. It's engineering your prompts to keep the cache intact across turns.
The researchers release their benchmark (DeepResearch Bench) and evaluation code alongside the paper, though the code is only partially open source. The benchmark itself — 100 research tasks with autonomous web search tool calls — is available for others to reproduce or extend.
What This Means for Agent Developers
If you're building production agents and not using prompt caching, you're burning money. A 41-80% cost reduction is not marginal. On a workload that costs $1,000 a day in API calls, that's $410-$800 back in your pocket.
The implementation isn't free. You need to restructure your prompts. You need to understand your provider's caching mechanics. You need to test latency in your own environment. But the payoff is substantial and — based on this evaluation — reliable across providers.
The strategic lesson goes beyond caching. Agent workloads need context engineering, not just prompt engineering. Where you place dynamic content matters as much as what you say. The structure of your prompt prefix determines your cache hit rate, and your cache hit rate determines your cost.
Prompt caching isn't a toggle you flip. It's a design constraint you build around.
Citations:
- Lumer, E., Nizar, F., Jangiti, A., Frank, K., Gulati, A., Phadate, M., & Subbiah, V.K. (2026). "Don't Break the Cache: An Evaluation of Prompt Caching for Long-Horizon Agentic Tasks." arXiv:2601.06007. https://arxiv.org/abs/2601.06007
- Argmin AI analysis: https://app.argminai.com/arxiv-dashboard/papers/2601.06007v2
- DeepResearch Bench (Du et al., 2025) — referenced as the evaluation benchmark
- OpenAI Prompt Caching documentation: https://platform.openai.com/docs/guides/prompt-caching
- Anthropic Prompt Caching documentation: https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
- Google Cloud Context Caching documentation: https://cloud.google.com/vertex-ai/generative-ai/docs/context-cache
Suggested title: Don't Break the Cache: How Prompt Caching Cuts Agent API Costs by Up to 80%
Word count: ~1,550
Fact-check notes:
- The arXiv paper ID (2601.06007) and version history (v1 Jan 9, v2 Jan 31, 2026) are confirmed from the arXiv abstract page.
- Authors and PricewaterhouseCoopers affiliation confirmed from the paper.
- Cost reduction range (41-80%) and TTFT improvement range (13-31%) match the abstract and Argmin AI analysis.
- Per-model breakdowns (GPT-5.2 79.6%, Claude 78.5%, Gemini 41.4%, GPT-4o 45.9%) sourced from Argmin AI's Table 1 analysis. These should be verified against the paper's Table 1 directly if precision matters.
- TTFT per-model numbers (GPT-4o 30.9%, Claude 22.9%, GPT-5.2 13.0%, Gemini 6.1%) from Argmin AI. Gemini's improvement noted as not statistically significant in Argmin analysis — worth confirming against the paper.
- Provider implementation details (minimum thresholds, TTLs, automatic vs explicit caching) confirmed from the paper's Section 2.2 and general provider documentation.
- The claim that naive full-context caching can increase latency is directly supported by the abstract and Section 1 of the paper.
- DeepResearch Bench is referenced as the evaluation benchmark; original source is Du et al. (2025).