Building-block guide · Performance and cost

Caching

Prompt and prefix caching, KV cache, semantic caching, tool-result and retrieval caching, and how to invalidate safely without leaking data between tenants.

Draft for review · researched 30 Nov 2026

Contents
  1. At a glance
  2. Scope and where it sits
  3. When to use what
  4. Decision criteria
  5. Reference patterns
  6. Recommended defaults
  7. Anti-patterns
  8. Sizing and cost notes
  9. Security and compliance hooks
  10. Test and eval checklist
  11. Related plan sections and inventory
  12. Unverified or needs review
  13. Sources

At a glance

  • Turn on provider prefix caching everywhere and design for it. Cache reads cost 0.1x base input on most Anthropic models (less on the newest) and OpenAI cites discounts of up to 95% [1][2]. The work is in prompt layout, not configuration.
  • Freeze the prefix. Tools, system prompt, skills index and stable instructions first, in a fixed order; timestamps, user IDs and retrieved rows after the last breakpoint. A CI lint enforces it.
  • Every cache key carries the tenant and, for user-specific content, the authorisation context, across semantic, tool-result, retrieval and self-hosted KV caches [17].
  • CoE decision (30 November 2026): semantic caching is off by default for regulated, customer-facing agents; an exception needs approval from both the CoE lead and the chief compliance officer.
  • Semantic response caching is off by default. Allow it only for low-risk, non-personalised content with a strict threshold and false-hit sampling; poisoning is documented [13][14].
  • Cache only idempotent, read-only tool calls, never writes, approvals or inputs to an authorisation decision.
  • Invalidate by design: versioned keys, event-driven eviction, TTL only as the backstop.
  • Self-hosted serving gets per-tenant isolation (vLLM cache_salt with a cryptographic hash), because shared KV caches leak through timing [6][15].
  • Measure per layer: hit rate, false-hit rate, stale serves and cost avoided, next to cost per successful task [21].

Scope and where it sits

This guide covers every cache an agent touches: provider prompt and prefix caches, the KV cache in self-hosted serving, semantic response caches at the gateway, tool-result and MCP metadata caches, retrieval and embedding caches, and HTTP or CDN caching where agent tools call web APIs. It also covers invalidation, cache-friendly prompt layout and the security of shared caches.

In the 10-layer reference architecture (plan section 4) caching is cross-cutting:

Layer Cache it owns
2 Agent gateway and edge security Semantic response cache, HTTP response cache for tool APIs, credential and token caches
5 Model layer and routing Provider prompt caching, self-hosted prefix (KV) caching, cache-aware routing
6 Context engineering Prompt layout and breakpoint design, context budgets that keep prefixes stable
7 Memory and knowledge Query-embedding cache, retrieval result cache, reranker cache
8 Tools and integration Tool-result cache, MCP list and resource cache
10 Observability and AgentOps Cache metrics, isolation tests, cost avoided

In the Anatomy of an AI Agent crosswalk, caching sits mainly in Working memory (system 3: prompt assembly, context budgets, compaction and caching) and Metabolism (system 10: FinOps and cost per successful outcome), with retrieval caches touching The library (system 15).

Related guides: Prompt assembly and context engineering owns the canonical prompt order; Cost and latency engineering owns token budgets and the FinOps model; Model selection and routing covers why model switches forfeit caches; Agent memory covers long-term memory stores, which are not caches; Permission-aware retrieval and residency covers ACLs that retrieval caches must respect; Embeddings and Vector stores and hybrid retrieval cover the index itself; Guardrails and Observability and tracing cover the controls and signals referenced here.

When to use what

Option Use when Avoid when Cost and latency notes
Provider prompt or prefix cache (Anthropic, OpenAI, Gemini, Bedrock) Stable prefix above the model minimum (512 to 4,096 tokens) reused within the TTL [1][2][3][5] Prefix changes every call, or traffic too sparse for reads Anthropic writes 1.25x (5 min) or 2x (1 h), reads 0.1x to 0.025x [1]; OpenAI GPT-5.6+ writes 1.25x (30 min) or 2.5x (12 h), earlier models no write charge [2]. Lower time to first token
Gemini explicit cached content Large shared context reused for hours Per-user context; Gemini 4 Argon onward or Interactions API [3] Default TTL 1 hour; storage billed for the TTL [4]
Self-hosted prefix (KV) cache (vLLM, SGLang) Shared system prompts, few-shot blocks, multi-turn chat Mixed tenants without salting Reuses GPU KV blocks, LRU eviction [6][9]
Semantic response cache High-volume, low-risk, non-personalised FAQ Personalised, regulated or fast-changing answers; attacker-writable caches Saves a call per hit; adds embedding and lookup to every request; hit rates below 90% [12]
Exact-match response cache Identical repeated requests (classification reruns) Free-text chat Near-zero false hits, low hit rate
Tool-result cache Idempotent, read-only lookups with known freshness Writes, approvals, authorisation inputs Saves tool latency and API cost; risk is staleness and leakage
MCP metadata cache Always, per server ttlMs and cacheScope [17] Ignoring private scope or list-changed notifications Keeps tool lists, and so prompt prefixes, stable
Query-embedding and retrieval cache Popular queries on a slowly changing index Tight freshness SLAs; ACL scope missing from key Invalidate on index version change
HTTP or CDN cache for tool APIs Public, non-personalised resources Responses to requests with Authorization, unless explicitly allowed [19] Cache-Control: private forbids shared caches [19]

Notes:

  • Prefix caching is quality-neutral. The model sees exactly the same tokens, and in agent loops cache reads dominate input cost once the layout is right.
  • Caches are model-scoped, so switch models only at session, sub-agent or phase boundaries (see Model selection and routing).
  • Small, stable corpora can skip RAG. Anthropic suggests a knowledge base under about 200,000 tokens can go fully into a cached prompt, cutting latency by more than 2x and cost by up to 90% [22]. Prove it with evals first.

Decision criteria

  1. Is the prefix stable and above the provider minimum? If yes, cache with breakpoints at stability boundaries. Below the minimum, caching silently does nothing [1][2][3]; consolidate shared content or accept no cache.
  2. What is the start-to-start gap between requests that share the prefix? Under 5 minutes: default TTL, refreshed on every read [1]. 5 to 60 minutes, or batches: the 1-hour TTL [1][25]. Longer: OpenAI extended retention or Gemini explicit caches [2][4], or accept a cold write.
  3. Is the content personalised or permission-filtered? If yes, no shared semantic or retrieval cache; key any cache on user or authorisation context, or do not cache.
  4. What does a wrong or stale answer cost? High (regulated advice, financial or health content, actions): exact-prefix caching only. Low (public FAQ): semantic caching with a strict threshold may be acceptable.
  5. Can an untrusted party write into the cache? If user prompts populate a shared semantic cache, assume poisoning is possible [13][14]: partition per tenant, require an allowlisted source for cached answers, or do not cache.
  6. Does the tool have side effects? Any write, payment, message or state change: never cache. Read-only: cache with a key that includes caller identity and tool version.
  7. How does the source signal change? Events, CDC or MCP notifications available: event-driven invalidation. None: TTL tied to the measured change rate [18], plus versioned keys.
  8. Is serving self-hosted and multi-tenant? If yes, per-tenant salting and a cryptographic block hash are mandatory [6].

Reference patterns

1. Frozen-prefix layout with stability breakpoints

Problem. Agents resend tools, system prompt and history on every step. A timestamp or an unsorted tool list near the top makes every call a cache miss.

How it works. Follow the canonical order from plan section 4B: tool definitions, static system prompt and policy, skills index, stable project instructions, retrieved documents, memory snippets, conversation history (append-only), current user turn. Put one explicit breakpoint at the end of the static block (tools plus system) and let the growing conversation tail be cached by an automatic or rolling breakpoint. Anthropic allows up to 4 breakpoints, looks back at most 20 blocks from each, and processes the prefix in the order tools, system, messages [1]. OpenAI GPT-5.6 and later places an implicit breakpoint at the end of the latest eligible message and also accepts explicit breakpoints [2]. MCP 2026-07-28 asks servers to return tools/list in a deterministic order for exactly this reason (plan section 9).

{
  "tools": ["<sorted, versioned tool definitions>"],
  "system": [
    {"type": "text", "text": "<static policy and instructions>",
     "cache_control": {"type": "ephemeral", "ttl": "1h"}}
  ],
  "cache_control": {"type": "ephemeral", "ttl": "1h"},
  "messages": ["<append-only history>", "<current turn with date, user id, retrieved rows>"]
}

Illustrative shape based on the Anthropic API [1]; other providers differ.

When to use. Every agent. It is the cheapest cost lever in the plan.

Pitfalls. Changing tool definitions invalidates everything; changing tool_choice or images invalidates the messages cache on Anthropic models [1]. Editing earlier history breaks reuse. Isolation is per workspace on the Claude API and per organisation on Bedrock and Google Cloud, so split traffic writes separate entries [1]. An entry is usable only once the first response starts, so a burst of identical parallel requests all write [1][5]. Verify with usage fields (cache_read_input_tokens, cached_tokens) rather than assuming.

2. Tenant-partitioned semantic cache at the gateway

Problem. Paraphrased FAQ questions hit the model repeatedly, but a shared semantic cache can serve one user's answer to another, return wrong answers on near matches and be poisoned.

How it works. The gateway embeds the user question (system message excluded) and looks up only within a partition keyed by tenant, and by user or group where answers differ by entitlement. Azure API Management does this with a vary-by expression and recommends ignoring system messages [10]. Values come from an allowlisted, versioned source (an approved FAQ answer ID), not arbitrary model output. A sample of hits is re-scored offline to estimate the false-hit rate.

Threshold scales differ: Azure APIM uses a score where lower is stricter (start at 0.05; above 0.2 may mismatch) [10]; Redis LangCache uses similarity, default 0.85, recommended start 0.8 to 0.9 [11]. Start strict and loosen only on spot-check evidence.

When to use. High-volume public or internal FAQ content that is not personalised and changes slowly.

Pitfalls. Both vendors warn that hits can be incorrect or outdated [10][11]; GPTCache's authors report hit rates below 90% and real negative hits [12]. Semantic cache poisoning worked on three major clouds despite existing defences [13], and CacheAttack hijacked responses at an 86% hit rate, transferring across embedding models [14]. Shared caches also leak through timing [15]. Never semantically cache answers that depend on permissioned retrieval, tool results or conversation state.

3. Authorisation-aware tool-result cache

Problem. Agents call the same read-only tools repeatedly. AWS's Agentic AI Lens recommends a fleet-wide tool-result cache through a gateway [18]; MCP says private results must never cross authorisation contexts and does not list tool call results as cacheable [17].

How it works. The CoE ruling (plan section 4A): every shared tool-result key includes the authorisation context, and only tools registered as read-only and idempotent are cached.

key = hash(
  tenant_id,
  auth_context_id,        # user or delegated token subject, scopes
  tool_name, tool_version,
  canonical_json(arguments),
  data_version_or_etag    # when the source exposes one
)
ttl = min(tool_registry.max_ttl, observed_change_interval)
cacheable = tool.read_only and tool.idempotent and not tool.feeds_policy_decision

For MCP metadata, honour ttlMs (treat absent as 0, meaning immediately stale), keep cacheScope, and invalidate immediately on list-changed notifications [17].

When to use. Reference data, catalogue and directory reads, slow-changing configuration, expensive search tools.

Pitfalls. Caching a result the policy engine (plan section 10B) uses puts the cache in the authorisation path. A fleet-wide cache spreads one bad result to every agent. A server that mislabels scope as public leaks data; MCP says scope alone is not access control [17].

4. Per-tenant prefix isolation in self-hosted serving

Problem. Open-weight serving shares GPU KV blocks across requests. Without isolation, an attacker can infer another tenant's prompt from latency [15].

How it works. In vLLM, each KV block hash covers the parent hash, the block's tokens and extra keys (LoRA IDs, multimodal hashes and cache salts) [6]. A per-request cache_salt is injected into the first block's hash so only requests with the same salt reuse cached blocks, which vLLM describes as preventing timing attacks [6]. Since v0.11 the default hash is sha256; sha256_cbor is reproducible across environments; xxhash is non-cryptographic and vLLM warns it raises collision risk and could leak private information in multi-tenant settings [6]. SGLang keeps KV caches in a radix tree with LRU eviction of leaves [9]; apply the same trust-domain partitioning at the routing layer.

{"model": "<open-weight model>", "messages": ["..."], "cache_salt": "<tenant-scoped secret>"}

When to use. Any shared inference cluster serving more than one tenant or more than one trust domain.

Pitfalls. Salts must be secret and scoped to a trust group, not a guessable tenant name. Prefix-aware load balancers (llm-d or NVIDIA Dynamo, for example) must route on the salted key. Disabling prefix caching "to be safe" discards the main throughput lever; salt instead.

5. Versioned keys and event-driven invalidation for retrieval caches

Problem. Query-embedding, retrieval-result and reranker caches go stale silently when the embedding model, chunking, index or ACLs change.

How it works. Every derived key carries the version of everything that produced it:

embed_key     = hash(normalise(text), embedding_model_id, model_version, dimensions)
retrieval_key = hash(normalise(query), index_id, index_version, acl_scope_hash, top_k, filters)

Bump index_version on blue/green rebuilds (plan section 4A) so the old cache becomes unreachable rather than wrong. Subscribe to source change events or CDC to evict affected entries, and propagate erasure requests to caches as well as indexes (plan section 9). Libraries such as LangChain's cache-backed embeddings cache document embeddings by default and query embeddings only when enabled [20].

When to use. Any RAG system with repeated queries or expensive embedding or reranking.

Pitfalls. Leaving the ACL scope out of a retrieval cache key turns it into an oversharing channel. TTL-only invalidation on fast-changing data "serves stale content that appears fresh" [18].

6. Warm caches for bursty and batch workloads

Problem. Fleets that start many runs at once all write the same prefix, and batch jobs outlive a 5-minute TTL.

How it works. Send one warm-up request before fan-out (Anthropic accepts max_tokens: 0 to write the cache without output) [1], then start workers. Use the 1-hour TTL for batches with shared context; Anthropic reports best-effort batch hit rates of 30% to 98% [25]. Bedrock does not support caching with batch inference [5].

When to use. Orchestrator-worker fan-out, nightly batch evaluation, document processing pipelines.

Pitfalls. A warm-up is pure cost when traffic is already continuous. Scheduled re-warms only help when gaps exceed the TTL.

Setting Default Range or options Why
Provider prefix caching On for every agent whose stable prefix exceeds the model minimum Model minimums 512 to 4,096 tokens (Anthropic), 1,024 (OpenAI GPT-5.6+), 2,048 to 4,096 (Gemini implicit) Sourced [1][2][3]
Prompt order Tools, system and policy, skills index, stable instructions, retrieved docs, memory, history, current turn Fixed per harness; lint in CI Practitioner default, aligned with plan 4B and [1]
Breakpoints One explicit at end of static block plus rolling or automatic for history Up to 4 on Anthropic; implicit or explicit on OpenAI GPT-5.6+ Sourced [1][2]
Prompt cache TTL Shortest (5 min Anthropic; 30 min OpenAI GPT-5.6+) 1 h (Anthropic), 12 h (OpenAI Responses), explicit TTL (Gemini, default 1 h) Sourced [1][2][4]; reads refresh the timer [1]
Batch jobs with shared context 1-hour TTL plus a warm-up request Bedrock batch: no caching Sourced [1][5][25]
OpenAI prompt_cache_key One key per tenant (and per prompt family when busy) About 15 requests per minute per key for busy groups Sourced [2]
Semantic response cache Off; always off by default for regulated, customer-facing agents (exceptions approved by the CoE lead and the chief compliance officer) On only for low-risk, non-personalised, allowlisted answers CoE decision, 30 November 2026; plan 4A policy
Semantic threshold Strictest vendor-recommended start Redis similarity 0.8 to 0.9 (default 0.85) [11]; APIM score 0.05, not above 0.2 [10] Sourced [10][11]
Semantic cache partition Tenant plus user or entitlement group Never global Sourced [10]; plan 4A
Semantic cache TTL Tied to measured source change rate Hours for FAQ; never longer than the answer's review cycle Sourced [18]
Tool-result cache scope Read-only, idempotent tools only; key includes auth context and tool version Private per auth context; public only for user-independent data Sourced [17]; plan 4A ruling
MCP metadata TTL Server ttlMs; absent means 0 Invalidate on list-changed notifications Sourced [17]
Self-hosted KV isolation cache_salt per tenant, sha256 or sha256_cbor hash Never xxhash in multi-tenant serving Sourced [6]
Retrieval and embedding keys Include model ID, model version, index version and ACL scope hash Bump on rebuild Practitioner default
Cache hit-rate target 50% or more of input tokens from cache where the prefix is stable Per agent Practitioner default (plan evals-ops KPI)
Semantic false-hit budget Under 1% on a weekly spot-check sample Tighter for any customer-facing answer Practitioner default

Anti-patterns

  • Timestamp, request ID or user name in the system prompt. Fix: move every per-request value after the last breakpoint; add a CI lint and alert on zero cache reads.
  • Non-deterministic tool lists (tools loaded from a set, MCP servers listed in arbitrary order). Fix: sort and version tool definitions; require deterministic tools/list from MCP servers.
  • Switching models or effort per request inside a conversation. Fix: switch at session, sub-agent or phase boundaries; caches are per model [1].
  • One global semantic cache for all users. Fix: partition per tenant and entitlement; allowlist sources; or turn it off.
  • Caching model output as the semantic cache value without review. Fix: cache references to approved answers, or require a human-approved answer set for the cached class.
  • Caching write or side-effecting tool results (payments, tickets, emails). Fix: registry flag read_only and idempotent gates caching; retries use idempotency keys, not caches.
  • Tool-result cache keyed only on tool and arguments. Fix: add auth context, tenant and tool version to the key [17].
  • TTL as the only invalidation. Fix: versioned keys plus event-driven eviction; TTL as backstop [18].
  • Shared KV cache across tenants on a self-hosted cluster. Fix: cache_salt per trust group and a cryptographic hash [6].
  • Assuming the provider isolates caches the way you expect. Fix: confirm per provider and per surface (workspace versus organisation isolation) and record it in the vendor assessment [1][2][16].
  • No cache metrics. Fix: emit cached tokens per call into traces and report hit rate, false-hit rate and cost avoided per agent.

Sizing and cost notes

Prefix cache economics (Anthropic multipliers [1], illustrative workload). An agent run makes 15 model calls, each resending a 30,000-token static prefix (tools, system, skills).

Scenario Input-token cost of the prefix, in base-price token equivalents
No caching 15 x 30,000 = 450,000
5-minute cache, reads at 0.1x 1 write at 1.25x (37,500) + 14 reads at 0.1x (42,000) = 79,500, about 82% lower
5-minute cache, reads at 0.05x 37,500 + 21,000 = 58,500, about 87% lower

Break-even follows from the multipliers: a 5-minute entry pays for itself on the second request (1.25 + 0.1 = 1.35 versus 2.0 uncached), a 1-hour entry on the third (2.0 + 0.2 = 2.2 versus 3.0) [1].

OpenAI. Earlier models carry no write charge, so caching is never a loss there; GPT-5.6 and later charge 1.25x for 30-minute writes and 2.5x for 12-hour writes [2], so long retention needs several reads to pay off.

Gemini explicit caches add storage cost for the TTL duration [4]; set the TTL to the expected reuse window, not "long to be safe". Implicit caching carries no guaranteed saving [4]. In Gemini 4 agent loops, the full previous request is cached only when the new request adds at least 2,050 tokens [3].

Bedrock. Cache entries live on the server that processed the request, so a request served by another server or region writes a new entry, and cross-region inference can raise cache writes at busy times [5]. Cache hits do not count against Anthropic rate limits on Bedrock [5].

Latency. Cache hits cut time to first token on long prompts (Anthropic cites more than 2x for a cached knowledge base [22]). Semantic caches save a generation on a hit but add an embedding call and lookup to every request.

Self-hosted. SGLang reports up to 6.4x throughput on its own benchmarks [8] (5x in the earlier LMSYS post [9]); treat these as author benchmarks, not guarantees.

FinOps. Report cache hit rate as cache reads divided by reads plus writes plus uncached input, as the FinOps Foundation defines it (example 60%) [21], alongside cost per successful outcome. A rising write share is an early sign of a broken prefix.

Security and compliance hooks

Threat OWASP mapping Controls
Cross-tenant leakage through a shared cache LLM02 Sensitive Information Disclosure; LLM08 Vector and Embedding Weaknesses [23] Tenant and auth context in every key; provider isolation confirmed per surface [1][2]; cache_salt self-hosted [6]
Timing side channels revealing prompts or other users' queries LLM07 System Prompt Leakage; LLM02 [23] Per-tenant salting; no shared semantic cache across tenants; prefix sharing only within a tenant (plan 4A) [15][16]
Semantic cache poisoning and key collision LLM04 Data and Model Poisoning; LLM08; ASI06 Memory and Context Poisoning [23][24] Allowlisted answer sources; per-tenant partitions; strict thresholds; poisoning cases in red-team suites [13][14]
Stale or wrong cached answers presented as fresh LLM09 Misinformation [23] Versioned keys, event-driven invalidation, false-hit sampling, freshness label in traces
A bad cached tool result spreading across a fleet ASI08 Cascading Failures [24] Per-tool TTL caps, circuit breaker on anomaly, purge-by-tool runbook
Cache bypass or miss storms driving spend LLM10 Unbounded Consumption [23] Rate limit after cache lookup [10]; budget alerts on write share

Data protection. Caches hold personal data whenever prompts do. Anthropic holds KV cache representations in memory only and prompt caching is ZDR eligible [1]; OpenAI defaults ZDR organisations to in-memory retention [2]. Gateway semantic and tool caches are your own data stores: classify them, set retention, encrypt per tenant, and include them in erasure propagation (plan section 9) and privacy records (plan section 11).

Audit evidence to keep. Cache inventory per agent (layer, store, key schema, TTL, scope); provider isolation statements with dates; isolation test results; hit and false-hit metrics; invalidation and purge logs; change records for key-schema changes.

Governing plan sections. 10 (threat model and red-team packs, including cache poisoning), 10A (agent and user identity used in cache keys), 10B (no cached result may stand in for a policy decision), 11 (privacy obligations, erasure), 13 (registry records cache layers and risk tier), 14 (approvals and HITL decisions are never cached), and the ROE (to be defined, plan section 12), which will need cached responses to stay inside the same outcome bounds as live ones.

Test and eval checklist

ID Stage Check Pass criteria Priority
CACHE-01 Design Cache inventory lists every layer, key schema, TTL and scope Reviewed and approved in design review Must
CACHE-02 Build Prefix lint: no per-request values before the last breakpoint CI fails on violation; zero violations at merge Must
CACHE-03 Build Tool definitions and MCP tool lists are deterministic Byte-identical prefix across 100 replayed requests Must
CACHE-04 Test Prefix cache actually hits Cached tokens above 0 from the second call; hit rate at or above target on replay Must
CACHE-05 Test Prefix meets provider minimum Cacheable prefix length above model minimum documented per model Should
CACHE-06 Test Cross-tenant isolation for semantic, tool and retrieval caches Zero hits across tenant boundaries in adversarial test Must
CACHE-07 Test Auth-context isolation for private tool results User B never receives user A's cached result Must
CACHE-08 Test Semantic false-hit rate on labelled near-miss set Below agreed budget (practitioner default under 1%) Must
CACHE-09 Test Semantic cache poisoning red-team cases No attacker-chosen answer served to another partition Must
CACHE-10 Test Timing side-channel probe on self-hosted serving No measurable hit signal across salts Should
CACHE-11 Test Side-effecting tools are never cached Registry check plus test: zero cache entries for write tools Must
CACHE-12 Test Versioned keys on index or model change Post-rebuild queries never return pre-rebuild cached results Must
CACHE-13 Test Event-driven invalidation Source change evicts affected entries within freshness SLA Should
CACHE-14 Test MCP ttlMs and list-changed handling Absent TTL treated as 0; notification invalidates immediately Should
CACHE-15 Test Erasure propagation reaches caches Erased subject absent from all caches within SLA Must
CACHE-16 Test Load test with cache cold and warm p95 latency and cost within SLO in both states Should
CACHE-17 Test Cache outage fallback Requests succeed with rate limiting when cache store is down Should
CACHE-18 Release Regression eval with caching on versus off Quality identical within noise for exact-prefix caches Must
CACHE-19 Release Provider isolation and retention reviewed Vendor assessment records isolation scope and ZDR status Must
CACHE-20 Run Hit rate, write share and false-hit rate on dashboard Alert on hit-rate drop over 20 points or write-share spike Must
CACHE-21 Run Weekly semantic hit spot check Sample re-scored; false-hit rate within budget Should
CACHE-22 Run Purge-by-tool and purge-by-tenant runbook drilled Purge completes within runbook target Could

Governing policies and procedures

From the CoE policy set (draft; control IDs on the policy crosswalk):

Unverified or needs review

  • Gemini explicit-cache minimum token counts and cached-token and storage prices: the Gemini caching pages opened do not state them, and the Vertex AI context cache overview did not render. Check the Gemini and Vertex pricing pages before quoting numbers.
  • Plan section 4A says an audit found 7 of 17 providers sharing caches across organisations; the paper's abstract confirms seven providers with global sharing but not the total of 17 [16].
  • The SGLang paper's venue (NeurIPS 2024) is not stated on the arXiv abstract page [8].
  • vLLM documentation pages did not render through the web fetcher; facts were taken from the docs source files in the vLLM GitHub repository [6][7]. Whether prefix caching is on by default depends on version: the feature doc shows enabling it explicitly.
  • OpenAI caching behaviour differs between GPT-5.6 and later and earlier models; re-check for each model in the approved list [2].
  • The 1% semantic false-hit budget and the 50% hit-rate target are practitioner defaults for the CoE lead to confirm per risk tier.
  • Decided on 30 November 2026: semantic caching is off by default for regulated, customer-facing agents. An exception needs approval from both the CoE lead and the chief compliance officer.

Sources

  1. Prompt caching, Anthropic (Claude Platform docs), https://platform.claude.com/docs/en/build-with-claude/prompt-caching, accessed 30 Nov 2026.
  2. Prompt caching, OpenAI API docs, https://developers.openai.com/api/docs/guides/prompt-caching, accessed 30 Nov 2026.
  3. Context caching, Google Gemini API docs, https://ai.google.dev/gemini-api/docs/caching, accessed 30 Nov 2026.
  4. Context caching (generateContent), Google Gemini API docs, https://ai.google.dev/gemini-api/docs/generate-content/caching.md.txt, accessed 30 Nov 2026.
  5. Prompt caching for faster model inference, Amazon Bedrock User Guide, AWS, https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-caching.html, accessed 30 Nov 2026.
  6. Automatic Prefix Caching (design), vLLM project, https://github.com/vllm-project/vllm/blob/main/docs/design/prefix_caching.md, accessed 30 Nov 2026.
  7. Automatic Prefix Caching (feature), vLLM project, https://github.com/vllm-project/vllm/blob/main/docs/features/automatic_prefix_caching.md, accessed 30 Nov 2026.
  8. SGLang: Efficient Execution of Structured Language Model Programs, Zheng et al., arXiv 2312.07104, https://arxiv.org/abs/2312.07104, accessed 30 Nov 2026.
  9. Fast and Expressive LLM Inference with RadixAttention and SGLang, LMSYS, https://lmsys.org/blog/2024-01-17-sglang, accessed 30 Nov 2026.
  10. llm-semantic-cache-lookup policy, Microsoft Learn (Azure API Management), https://learn.microsoft.com/en-us/azure/api-management/llm-semantic-cache-lookup-policy, accessed 30 Nov 2026.
  11. LangCache concepts, Redis, https://redis.io/docs/latest/develop/ai/langcache/concepts/, accessed 30 Nov 2026.
  12. GPTCache: An Open-Source Semantic Cache for LLM Applications, NLP-OSS 2023 (ACL Anthology), https://aclanthology.org/2023.nlposs-1.24.pdf, accessed 30 Nov 2026.
  13. When Cache Poisoning Meets LLM Systems: Semantic Cache Poisoning and Its Countermeasures, NDSS Symposium 2026, https://www.ndss-symposium.org/ndss-paper/when-cache-poisoning-meets-llm-systems-semantic-cache-poisoning-and-its-countermeasures/, accessed 30 Nov 2026.
  14. From Similarity to Vulnerability: Key Collision Attack on LLM Semantic Caching, Zhang et al., arXiv 2601.23088, https://arxiv.org/abs/2601.23088v1, accessed 30 Nov 2026.
  15. The Early Bird Catches the Leak: Unveiling Timing Side Channels in LLM Serving Systems, arXiv 2409.20002, https://arxiv.org/abs/2409.20002, accessed 30 Nov 2026.
  16. Auditing Prompt Caching in Language Model APIs, arXiv 2502.07776, https://arxiv.org/abs/2502.07776, accessed 30 Nov 2026.
  17. Caching (specification 2026-07-28), Model Context Protocol, https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/caching, accessed 30 Nov 2026.
  18. AGENTSUS02-BP02, AWS Well-Architected Agentic AI Lens, AWS, https://docs.aws.amazon.com/wellarchitected/latest/agentic-ai-lens/agentsus02-bp02.html, accessed 30 Nov 2026.
  19. RFC 9111: HTTP Caching, IETF (RFC Editor), https://www.rfc-editor.org/rfc/rfc9111.html, accessed 30 Nov 2026.
  20. CacheBackedEmbeddings reference, LangChain, https://reference.langchain.com/python/langchain-classic/embeddings/cache/CacheBackedEmbeddings, accessed 30 Nov 2026.
  21. FinOps for AI Overview, FinOps Foundation, https://www.finops.org/wg/finops-for-ai-overview/, accessed 30 Nov 2026.
  22. Introducing Contextual Retrieval, Anthropic, https://www.anthropic.com/news/contextual-retrieval, accessed 30 Nov 2026.
  23. OWASP Top 10 for LLM Applications 2025, OWASP GenAI Security Project, https://genai.owasp.org/llm-top-10/, accessed 30 Nov 2026.
  24. OWASP Top 10 for Agentic Applications, OWASP GenAI Security Project, https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications/, accessed 30 Nov 2026.
  25. Batch processing, Anthropic (Claude Platform docs), https://platform.claude.com/docs/en/build-with-claude/batch-processing, accessed 30 Nov 2026.
↑