Highest Impact Context Types for Prompt Caching Savings

System instructions and role definitions offer the most significant cost reductions when cached, as they are often large (2,000-10,000 tokens) and repeatedly sent. Tool schemas, tool descriptions, product/policy rules, and static reference documents also provide substantial savings due to their stable, reusable nature.

The top 3

  1. System Prompts: Top Fixed Cost Saver: Caching static system prompts can eliminate the most dominant fixed cost in AI agent inference, as these prompts often represent the largest share of re-read context that remains unchanged across multiple agent interactions.
  2. Tool Schemas: Major Dynamic Context Savings: Prompt caching for frequently used tool schemas offers significant savings by preventing repetitive re-reads of these definitions, especially in complex agentic systems where tools are constantly invoked.
  3. Common Data Structures: Efficiency Boost: Caching common or static data structures and knowledge bases frequently referenced by AI agents can drastically reduce re-read expenses, improving overall efficiency and lowering inference costs.

Sources

Open the full topic