Prefix caching can reuse previously computed KV-cache blocks for a matching beginning of a request. That can reduce repeated prefill work, for example when requests share a long system prompt. In a shared service, however, the cache introduces confidentiality and tenant-boundary questions.
The vLLM security guide states that tenants sharing one server process also share scheduling and caches. cache_salt reduces specific cross-tenant risks but is not a complete isolation boundary. When tenant isolation is required, enforce it in the deployment architecture and access controls.
What prefix caching changes
A model first processes the input and then generates output tokens. If requests share a prefix, matching cached blocks may avoid recomputing the shared portion. The automatic prefix caching documentation describes its behavior and limitations.
The improvement depends on matching prefix length, cache blocks, eviction, request mix and load. It does not automatically accelerate new-token generation by the same proportion. Confirm behavior in the installed vLLM release and measure with representative traffic.
In an illustrative example, reducing repeated prefill by 120 ms from an 800 ms first-token time is a 15% reduction. Those numbers are hypothetical, not a vLLM benchmark; queuing and other stages can change the result.
Understand the documented risk
vLLM describes a timing side channel in which differences in time to first token can reveal whether a guessed prefix matches one in a shared cache; its guide references CVE-2025-46570. The risk depends on who shares the backend, what data are sensitive and what timing observations are available. It is not evidence that every deployment leaks request contents.
Define a threat model and test only an authorized environment with synthetic data. If strong separation is required, consider a dedicated vLLM instance per tenant and appropriate infrastructure boundaries. A parameter alone does not isolate processes, networks, logs or storage.
Scope cache_salt to a trust boundary
The documentation explains that cache_salt is incorporated into prefix-cache block hashes. Requests with different values do not share those matching cache blocks. It mitigates a specific cross-tenant risk; it does not replace process isolation or access control.
Choose a scope matching the trust boundary, such as a user or a group allowed to share cached prefixes. The vLLM guide recommends unpredictable secret values rather than account names or other guessable identifiers. Protect them in storage and logs and plan rotation.
The parameter is opt-in and is not passed by default. An authenticated gateway should assign the appropriate scope for every request and prevent clients from selecting another tenant's scope. Verify the installed version and API rather than assuming every release behaves identically.
Measure the cost of separation
Different salts reduce cache reuse across trust boundaries. A lower hit rate may increase prefill work, so size capacity using an agreed security model and realistic measurements.
For an illustrative hour with 1,000 requests, 600 hits would represent 60%; 400 hits would be 40%, a 20-percentage-point difference. These are hypothetical figures, not measured vLLM results. A hit rate alone establishes neither security nor an SLA.
Compare the same request set, concurrency, warm-up and eviction settings. Record first-token and end-to-end latency, GPU utilization, memory, errors and available cache metrics. Reassess after changing model, software or traffic patterns.
Multimodal cache identifiers
The vLLM security guide also describes the risk of reusing client-supplied media UUIDs for different content on a shared process. It recommends unique random media identifiers in multi-tenant deployments and a per-tenant secret salt as defense in depth. The gateway should scope client-controlled identifiers to the correct trust boundary.
The documented default of hashing media bytes when UUIDs are omitted does not make a shared process tenant-isolated. Confirm the behavior of the deployed version and the full application stack.
A practical verification sequence
- Document tenants, sensitive data and allowed cache sharing.
- Record the vLLM version, model, caching mode and gateway configuration.
- Use synthetic requests to verify assignment of protected scope values.
- Review access to processes, network, logs and storage.
- Measure latency, cache behavior and GPU resources on the intended workload.
- Document secret rotation, updates and incident response.
Monitor after deployment
Scope metrics to trusted tenants without exposing prompts or secret salt values in shared dashboards. Monitor first-token latency, scope-assignment errors and memory after model or engine updates. On a test environment, use synthetic requests to verify same-scope reuse, different-scope separation and cold-cache behavior; such checks do not prove that every side channel is absent.
Agree how the gateway handles a missing salt: for example, reject the request or route it to an appropriately isolated instance. Do not assume that omission is safe by default; vLLM documents the parameter as optional. Recheck the policy after gateway failures and API upgrades.
For strict separation, assess dedicated instances and infrastructure boundaries with security specialists. Share tenant count, model, context, concurrency, isolation requirement and latency target when requesting a server. Explore the AI Server Lab catalog or use the contact form. Configuration and commercial terms require confirmation.

