# Verified security outcomes vs semantic caching

> A semantic cache returns old model text for a similar prompt. Reeflex returns only answers an analyst confirmed or tests proved, then rechecks them.

Updated 2026-11-29.

Both save model calls. They differ in what they hand back. A semantic cache returns whatever the model said last time. Reeflex returns only answers that were proven, and checks them again before your agent uses them.

## How a semantic cache answers

A semantic cache embeds each prompt and stores the model's reply. When a new prompt lands close enough to an old one, it returns the old reply. It works well for repeated questions with stable answers.

Security prompts are a poor fit. Two findings can read almost the same and differ in one sanitizer call, and that call decides if the bug is real. The cache also has no idea if the reply it stored was right. If the model once called a real injection a false alarm, the cache repeats it.

## How a verified outcome answers

Reeflex keeps an answer only after a person confirmed it or a project's tests passed it. It matches on the code itself, the data flow of a finding or the vulnerable lines of a fix, not on how the prompt was worded. A fix is applied in your repository and your tests run again. If they fail, the fix is undone. See [what is a verified security outcome](https://reeflex.si/guides/verified-security-outcome/).

## Side by side

- What it returns. Cache: old text for a similar prompt. Reeflex: an analyst verdict or a fix proven by tests.
- Checked before use. Cache: no. Reeflex: yes, fixes rerun your tests and are undone if they fail.
- Learns from other teams. Cache: no, it holds your own history. Reeflex: yes, every team shares and receives proven outcomes.
- Wrong answers when it answers itself. Cache: unknown, nothing checks it. Reeflex: none across 860 triage verdicts and 309 fixes.

## When a cache is still the right tool

For prompts that repeat word for word and whose answer does not depend on the code, like formatting or summaries, a cache is simple and cheap. To decide if a finding is real or a fix is correct, use an answer that was checked. Reeflex and a cache can run together. For the wider comparison with Opus alone and model routers, see [compare](https://reeflex.si/compare/).

## Questions

### Is Reeflex an LLM cache?

No. A cache returns earlier model text for a similar prompt. Reeflex returns only outcomes a person confirmed or tests passed, matched on the code, and checks fixes again in your repository.

### Why is semantic caching risky for security agents?

Two findings can look alike and differ in one sanitizer, and the cache never knew if its stored answer was right. A wrong false-alarm verdict repeated from a cache hides a real bug.

## Related

- [What is a verified security outcome?](https://reeflex.si/guides/verified-security-outcome/)
- [How to cut model spend on an AI security agent](https://reeflex.si/guides/security-agent-cost/)
- [How to reduce false positives in AI scanner triage](https://reeflex.si/guides/false-positive-triage/)

Page: https://reeflex.si/guides/semantic-cache/
