Naderu Weekly · Episode 12

Why web search busts your prompt cache

15 October 2026 Week of 12 October 8 min episode · 6 min read

If your AI agent runs a web search on every step, it is not just paying up to fourteen dollars per thousand search queries — it is completely destroying your prompt cache. This week we break down the cost arithmetic of the dual-search split: why live web search and enterprise RAG belong on two completely different pricing models.

Watch or listen

Watch on YouTube — 7:46. Every figure below is linked to where we got it. If you would rather have it arrive than remember to check, subscribe to the weekly report — one email a week, one click to leave.

Two search jobs, two economic realities

On the Naderu model board and its underlying data file, we officially separated search into two distinct job categories:

Treating them as the same feature in an autonomous agent loop leads directly to compounding cloud bills.

The search grounding toll booth

When calling a model with live search tools enabled, token pricing ceases to be the whole bill. You pay for input and output tokens plus per-query search surcharges:

Why live web search kills KV cache reuse

Prompt caching across all major providers — including Anthropic and OpenAI — relies on key-value cache reuse that requires a byte-identical prefix starting from token zero.

When an autonomous agent executes a live web search, dynamic snippets containing live timestamps, volatile news summaries, or shifting search ranking snippets get prepended to the prompt context. Even a single token variance destroys the prompt cache for the entire remainder of the context window. In a 10-step agent loop, every turn bills at full uncached base input rates.

A single timestamp or re-ordered search snippet in retrieved web results invalidates prompt caching for the entire remaining context window.

Enterprise RAG: Prompt cache economics

In private enterprise RAG, you control the prompt structure. Placing invariant system instructions, tool schemas, and extraction rubrics first keeps the stable prefix cached:

100,000 queries side-by-side

Workload: 100K queries (10K input context)Operational Cost
Gemini 3.8 Flash + Web Grounding ($14/1K search fees + tokens)$1,500
Perplexity Sonar Agent API (2 searches/query + uncached tokens)$750
Claude Sonnet 5.5 Enterprise RAG (90% cached prefix at $0.10)$290
Gemini 3.8 Flash Enterprise RAG (no search fees, 90% cached at $0.025)$33
GPT-6 Luna Enterprise RAG (90% cached prefix at $0.01)$19

That is a 45x to 75x operational cost difference between live web search grounding and cached vector RAG.

Three moves for Monday

Architecture

1. Split your gateway routing

Separate traffic into bb/web-search (live internet freshness) and bb/rag-search (internal vector stores). Cap search iterations on web lanes.

Optimization

2. Order your prompt prefix

Place invariant system prompts and schemas at token zero so they stay byte-identical. Place user queries and retrieved chunks at the end.

Risk Control

3. Budget search tool calls

Put hard limits on web search tool iterations: at $2.50 to $14.00 per thousand queries, autonomous loops quickly generate four-figure bills.