How KV caches impact time to first token for LLMs
Aug 10, 2026

Summary
This post details the impact of KV (key-value) caching on LLM Time To First Token (TTFT) latency and throughput. It explains how KV caching, by storing intermediate attention computations, reduces the complexity of subsequent token generation from quadratic to linear. The post presents experimental results showing that reusing KV caches across LLM calls can save approximately 0.15ms per cached input token, leading to significant TTFT improvements (e.g., 100ms for 1000 cached tokens). This optimization is crucial for delivering a faster and more responsive Glean Assistant experience.
More from the AI Chat Latency Optimization trail
- Right-sizing intelligence: Glean saves 81% on token costs and is preferred 78% of the time versus Claude Cowork
- A complete guide to retrieval augmented generation vs fine-tuning
- How input token count impacts the latency of AI chat tools
- LLM choice in Assistant: A better agentic coworker sourcing deep proficiencies from your models of choice
- 5 metrics to measure AI-generated answers' decision-making impact