AI delivery / Operating economics

Prompt caching in practice: Diagnosing writes without reuse

How I traced a caching failure in Launcherry and got two repair calls to reuse 99% of their input tokens.

Explore the Launcherry series
Written by

Ivan Pedai · Product strategy, UX and AI workflow architecture

Article context

Lessons from building Launcherry

The cache was receiving writes without delivering reuse

Launcherry’s production usage records exposed a problem in repeated generation work: calls were writing prompt tokens to cache while reading nothing back within the run. The Google Search copy bank and analysis records showed the pattern. Caching existed in the system, but the expected reuse was not happening.

I traced the requests through the application to find out why later calls were not reading the context we had already cached.

After the correction, two generation-repair calls each read 3,879 of 3,932 input tokens from cache: about 99% reuse. That measures the shared input in those calls; the cost of the full run also includes preparation and output generation.

Ask what is being reused and what is changing

A repair changes the instruction while much of the underlying business context stays the same. I looked at how the request could preserve that shared context without losing the correction it needed to make.

I examined the behaviour through the application’s own adapter and the production provider path. The recorded probe compared requests that held relevant conditions steady with requests that changed them. That helped establish which changes interfered with reuse, rather than treating every cache miss as the same problem.

The transferable lesson is to test the request the product actually sends. Two prompts that seem similar to a human can differ in ways that matter to the provider’s cache. The model, request configuration and surrounding adapter behaviour belong in the investigation alongside the written instructions.

Provider conditions also differ. OpenRouter’s prompt-caching documentation distinguishes cached-token reads from cache writes and describes provider-specific behaviour. I use that documentation to frame a check, then rely on the application’s measured response to establish its result.

Keep the correction bounded by product requirements

I directed a correction to the generation request design so repeated repair work could reuse its shared context. The work retained the generation requirements and validation responsibilities. Reuse needed to support the product’s existing job, rather than become a reason to weaken its checks.

The implementation was accompanied by regression cases covering the relevant request behaviour and the relationship between draft and repair. Those checks provide repeatable evidence about how the application constructs its work. A live rerun then provided the evidence about cache reads.

Regression tests checked request construction; the live rerun checked whether the provider actually returned cache reads.

Check reuse across the full run

The rerun began with calls that wrote the cache entries. The next two repair calls each read 3,879 of 3,932 input tokens and wrote no new cache tokens.

To assess the full run, I include the preparation calls, cache writes, generated output and number of repairs. A strong reuse ratio is one input to that calculation.

I measure response time separately. Cache reads alone cannot tell me how long the founder waited.

Connect caching to economics without confusing the measures

AI usage is an operating cost in Launcherry. Caching can affect that cost, but total economics also depend on the provider’s rates, output generation, the number of calls and the amount of repair required. A highly reused input can still accompany an unhelpful result or an expensive sequence.

My acceptance decision therefore keeps quality and economics connected but separately measured. Output evaluation assesses the deliverable. Production usage establishes the cost and cache behaviour observed in that environment. The workflow architecture determines which work happens and how often.

For a product team considering optimisation, I would begin with a complete user outcome and its actual usage records. Locate repeated work, identify reusable context and measure the effect of a bounded change. Preserve the original quality requirements so a cheaper run cannot pass simply by doing less useful work.

Require observed reuse before claiming an optimisation

The correction was supported by regression checks and live cache reads. I could now see the reused context in the provider’s response instead of relying on the cache configuration.

Tracing the failure through the application helped me improve the request design and understand the cost of repeated generation.

The Launcherry case study puts this work in context. Before optimising another workflow, I would check which calls repeat context and what the complete run costs to produce a useful result.

Next in the series

Building a SaaS with AI

Read the next article

Put AI to work
with product judgment

Bring a recurring delivery problem. We can discuss where AI helps and where your team needs control.

Connect on LinkedIn