Vaulted vs Vaultless Tokenization: How Each Works and When to Use It

Vaulted vs vaultless tokenization

Once you’ve decided to tokenize sensitive data, the next decision is architectural. Do you keep a vault that maps every token to its original value, or generate tokens with a cryptographic process so there is nothing to store? Both approaches are reversible, both can preserve the format of the original data, and both appear in production payment and data platforms. They fail in different ways, scale in different ways and carry different compliance implications.

This guide explains how vaulted and vaultless tokenization work, compares them on performance, security and compliance, walks through a worked example and gives you a framework for choosing. If you need a refresher on the fundamentals first, start with what data tokenization is.

The Short Answer

Vaulted tokenization generates a random token and stores it against the original value in a secure database, the vault. Reversing a token means looking it up. Vaultless tokenization generates tokens with a cryptographic process, such as format-preserving encryption or pre-generated token tables, so nothing is stored per value. Reversing a token means running the process backwards with the same key.

Vaulted gives the cleanest separation between token and data and makes individual records easy to revoke. Vaultless scales and distributes more easily, but concentrates risk in the key.

How Vaulted Tokenization Works

Vaulted tokenization architecture diagram

In a vaulted model, the tokenization service sits in front of an encrypted database that holds every token-to-value mapping.

  1. An application sends a sensitive value, such as a card number, to the tokenization service.
  2. The service checks whether the value has already been tokenized. If it has and the system issues consistent tokens, it returns the existing token.
  3. If not, it generates a random token, often in the same format as the original and sometimes keeping the last four digits, and confirms it is unique.
  4. It stores the mapping in the vault, with the original value encrypted, and returns the token.
  5. When an authorized system needs the original, it calls the service, which checks permissions, looks up the token and returns the value.

The defining property is that the token has no mathematical relationship to the original value. Someone who steals tokens, or the algorithm that produced them, learns nothing. The trade-off is that the vault becomes a high-value target. It has to be encrypted, backed up, replicated and access-controlled to the same standard as the data it replaces, and it grows with every distinct value you tokenize.

How Vaultless Tokenization Works

Vaultless tokenization architecture diagram

Vaultless tokenization removes the per-value database. The tokenization service derives each token from the original value and a secret, and reverses it with the same secret. There are two common approaches.

  • Format-preserving encryption (FPE). The token is the original value encrypted with an algorithm that keeps its length and character set, such as the FF1 mode defined in NIST SP 800-38G. Reversing the token means decrypting it with the same key.
  • Static token tables. The service uses fixed tables of random substitutions, generated in advance and distributed to each node. The value is split into pieces and each piece is substituted through the tables. The tables stay the same size however much data you tokenize. Implementations vary by vendor.

Because the same value and the same key always produce the same token, vaultless tokenization is deterministic by default. That keeps joins working across systems, much like deterministic masking does for masked data. Any node that holds the key or tables can tokenize and detokenize locally, with no central database to call.

The trade-off is that the key, or the token tables, become the crown jewels. Anyone who obtains them can reverse every token they produced. Algorithm choice also matters. Short fields give FPE a small domain to work with, which weakens it, and NIST revised its FF3 mode after published attacks. Use a vetted mode such as FF1, follow current NIST guidance on minimum domain size, and keep keys in an HSM or key management service.

Vaulted vs Vaultless Tokenization: Side-by-Side

CriteriaVaultedVaultless
How tokens are createdRandom value, checked for uniquenessDerived from the value and a secret key or token tables
How tokens are reversedLookup in the vaultCryptographic reversal with the same key or tables
Link between token and valueNone; the token is randomMathematical, protected by the key
What you must protect mostThe vault, its backups and replicasThe key or token tables
Storage growthGrows with every distinct valueFixed; nothing stored per value
LatencyNetwork call plus database read or writeLocal computation; typically lower
Multi-region scalingNeeds consistent replication of the vaultDistribute keys or tables; nodes work independently
Consistent tokens for joinsOptional; requires a lookup before issuingBuilt in for a given key
Revoking one person’s dataDelete the mapping and tokens become unresolvableHarder; delete the tokens or use per-record keys
Key or secret rotationRe-encrypt the vault; tokens can stay the sameNew key changes tokens; stored tokens must be re-tokenized
Compliance scopeVault and tokenization service stay in scopeKeys, tables and tokenization service stay in scope

Performance and Scaling Trade-Offs

In a vaulted system, every new value means a uniqueness check and a database write, and every detokenization means a read. At high volumes the vault becomes the bottleneck. Running in more than one region adds a harder problem: replicas must stay consistent so two regions never issue different tokens for the same value, or the same token for different values. Caching helps with latency, but a cache of token mappings is sensitive data in its own right.

Vaultless systems are compute-bound instead. Tokenization can run as a local library, a sidecar or a service in each region, and it scales roughly in line with the compute you add. Only keys or tables need distributing, not data. That makes vaultless the common choice for high-throughput pipelines, data warehouses and globally distributed applications.

Security Model

The two models put the critical secret in different places. With a vault, an attacker who steals tokens has nothing; they need the vault or access to the detokenization service. With vaultless tokenization, an attacker who obtains the key can reverse every token it produced, wherever those tokens have been copied.

Rotation is where this shows up operationally. Rotating the encryption key on a vault re-encrypts the stored values while the tokens themselves stay the same. Rotating a vaultless key changes every token, so stored tokens must be re-tokenized or the service must support versioned keys.

In both models, the control that matters most is who can detokenize. Most real-world exposure comes from service accounts and applications with broader detokenization rights than they need, not from breaking the tokenization itself. Grant detokenization narrowly, log every request and review the logs.

Compliance Implications

This section is general guidance, not compliance or legal advice. Confirm your approach with your assessor or privacy team.

  • PCI DSS. Tokenization can reduce the scope of the cardholder data environment, because systems that only see tokens and cannot detokenize may fall outside it. The vault or the keys and tables, and the tokenization service, remain in scope. PCI SSC guidance also distinguishes tokens that can be reversed cryptographically from those that can only be resolved by lookup, which can affect how assessors treat systems holding them.
  • GDPR. Reversible tokens are generally pseudonymised data, not anonymous data, under either model. The right to erasure is easier with a vault: delete one mapping and that person’s tokens become unresolvable everywhere. With vaultless tokenization, you need to delete the tokens themselves or design per-record keys.
  • Data residency. With a vault, the location of the vault and its replicas decides where the original data lives. With vaultless tokenization, the original data is not stored by the service at all, but the location of keys and who can use them still matters.

Worked Example: Tokenizing a Card Number

A retailer runs checkout in two regions, analyses orders nightly and needs to process refunds. It tokenizes card numbers at checkout. The card number below is a standard test number and the tokens are illustrative.

With a vault

  1. Checkout in region A sends 4111 1111 1111 1111 to the tokenization service.
  2. The service checks its index, finds no existing token, generates the random token 8264 7302 9846 1111 and stores the encrypted card number against it.
  3. The order database and the nightly analytics only ever see the token, and repeat customers can be matched because the service returns the same token for the same card.
  4. For a refund, the payments service, which has detokenization rights, requests the original. The lookup is checked and logged.
  5. Region B must reach the same vault, or a consistent replica. If it issued its own tokens, the same card could end up with two different tokens.

Without a vault (FPE)

  1. Checkout in either region sends the same card number to a local tokenization service holding key K, retrieved from the key manager.
  2. The service encrypts the digits with FF1 and returns 5930 2817 6604 1111. Both regions produce the same token without talking to each other or storing anything.
  3. For a refund, the payments service asks the tokenization service to decrypt the token with K.
  4. If K is ever exposed, every token produced with it can be reversed. If K is rotated, the stored tokens must be re-tokenized.

When to Choose Each

Choose vaulted tokenization when:

  • You need to revoke or erase individual records cleanly.
  • You want tokens with no mathematical link to the original value.
  • Volumes are moderate and the vault can sit close to the applications that use it.
  • A payment processor or provider already runs the vault for you.

Choose vaultless tokenization when:

  • You need high throughput and low latency, for example in data pipelines or warehouses.
  • Applications run across several regions or at the edge.
  • You want to avoid operating a growing database of sensitive values.
  • You need consistent tokens for joins across many systems.

Many platforms support both, and some organisations use a vault for payment data and vaultless tokenization for analytics. And if nobody ever needs the original value back, as is usually the case for test and development data, tokenization may be more than you need. See how tokenization compares with masking before you commit to running token infrastructure.

FAQ

Is vaultless tokenization just encryption?

FPE-based vaultless tokenization is, technically, format-preserving encryption. The difference is mostly in how it is packaged and controlled: tokens replace values across systems, and a dedicated service governs who can reverse them. Table-based vaultless approaches work differently and are not standard encryption.

Which is more secure, vaulted or vaultless?

Neither is inherently more secure. Vaulted tokenization concentrates risk in the vault; vaultless concentrates it in the key or tables. The quality of key management, access control and detokenization auditing matters more than the model you pick.

Can vaultless tokens collide?

An FPE mode such as FF1 is a permutation, so for a given key and domain each input maps to a unique token. Vaulted systems must check for collisions when they generate random tokens.

Does vaultless tokenization remove systems from PCI DSS scope?

It can reduce scope for systems that only handle tokens and cannot detokenize. The tokenization service and the keys or tables remain in scope.

DataOpsZone is an Enov8 resource. Links to Enov8 pages are included where they add detail.

Context Graphs: The Missing Layer in Enterprise AI

Bigger context windows made AI agents better readers. They didn’t make them right.

Every enterprise software team now has access to an AI agent that can write code, open a pull request, or trigger a deployment on command. Fewer have an agent that can be trusted to answer a much simpler question: is production actually ready for tomorrow’s release? Ask most general-purpose coding assistants that question and the answer comes back fluent and confident, assembled from whatever ticket text, commit messages, and Slack history the model can find. What rarely comes back is the honest answer, which is that the model doesn’t know, because nothing ever told it.

This is not a model quality problem. Frontier models reason well over the information they’re given. The failure sits one level down, in what they’re given to reason over. Enterprise software delivery has spent two decades accumulating operational truth in places that were never built to talk to each other: environment status in a booking spreadsheet, release schedules in a project tracker, data lineage in a catalog the data team maintains for itself, ownership in a wiki page that was accurate at some point last year. Each system is a perfectly serviceable record on its own. None of them agree with each other, and none were designed to be read by anything other than a human who already carries the missing context in their head.

The difference between a window and a graph

The industry has largely spent the last three years solving the wrong half of this problem. Model providers competed on context window size, or how much text a model can hold in a single pass, while connectivity standards such as the Model Context Protocol, introduced in late 2024, solved how a model reaches a data source in the first place, replacing a mess of one-off integrations with a common interface. Both were genuine improvements. Neither addresses what actually determines whether the agent’s answer is correct: the structure of the data sitting on the other end of the connection.

A context window is a capacity question. A context graph is a structural one: a defined set of entities, environments, releases, deployments, datasets, systems, owners, connected by explicit relationships, rather than a pile of unstructured text describing the same entities in prose. Told that a given environment is booked by a specific release, which depends on a specific dataset, which was refreshed by a specific pipeline three hours ago, an agent can answer correctly. Told the same set of facts scattered across forty tickets and a dozen Slack threads, it can only guess plausibly. A bigger window lets a model read more. A graph lets it reason correctly about what it read.

The bottleneck was never how much a model could read. It was whether the operational reality behind the question had ever been organized into something a model, or a person, could actually reason over.

Where the graph already exists

This has a practical implication that most conversations about AI in DevOps skip. Consolidation work done for entirely different reasons, cost control, audit readiness, reducing coordination overhead between environment and release teams, turns out to have been the AI readiness work all along. Organizations that already unified environment booking, release scheduling, and test data provisioning onto one operational model already have a context graph, whether or not they ever framed it that way. Connecting an agent to it is comparatively mechanical.

Organizations that haven’t done that consolidation face a worse problem than they might expect. Buying an AI layer doesn’t skip the underlying work, it just defers the failure, from a visible integration project to an invisible pattern of confidently wrong agent output that erodes trust in the tool faster than any outage would. The same sorting applies to vendors. A chat interface wrapped around fragmented systems of record can demo well and fail in production, because the demo tests the model and production tests the graph.

Enov8’s AI Control Layer is a reasonably direct illustration of what this looks like once it’s actually built. It connects models such as Claude and Copilot to the environment, release, and deployment data that Enov8’s platform already governs, so a question about environment readiness or release risk is answered from current, structured operational data rather than reconstructed from scattered tickets, with every AI-initiated action still routed through human approval and logged for audit. The graph, in this case, was a byproduct of the environment and release management and test data management discipline that came first. The AI connection was added to existing structure rather than substituting for it.

What happens next

Governed context layers, a defined, permissioned graph sitting between operational systems and whatever AI tool a team happens to be using, look like a durable architecture pattern rather than a passing one, in roughly the way data warehouses became the standard substrate for enterprise analytics rather than a temporary workaround. The protocol layer will keep maturing. The more interesting competitive activity sits underneath it, in who has actually done the work of building the graph.

It also raises the stakes on governance faster than most organizations have priced in. Once an agent can plausibly initiate a production action rather than just recommend one, the question of who approved it, and on what basis, becomes as commercially important as whether the recommendation was correct. The near-term winners in enterprise AI for software delivery won’t be decided by whose model reasons best. They’ll be decided by whose graph the model is allowed to reason over.

Learn more: Enov8’s AI Control Layer connects AI tools directly to governed environment, release, and deployment data across the SDLC. Explore Environment & Release Management and Test Data Management at enov8.com.

Securing a Vector Store: Why Data Protection Must Start Before Chunking

Vector stores are quickly becoming a core component of enterprise AI architecture. They allow organisations to index large volumes of information, retrieve relevant context, and power AI assistants, copilots, search tools, and retrieval augmented generation solutions.

However, as more enterprise data is pushed into vector stores, a critical security question is emerging:

Are we securing the data before it becomes AI searchable?

For many organisations, the answer is not yet clear.

The common focus is on securing the AI model, securing the prompt, securing the application, or controlling access to the vector database. These controls matter. But they do not solve the root problem if sensitive data has already been ingested, chunked, embedded, and stored.

Once sensitive information has entered the AI pipeline, it becomes much harder to control.

The Vector Store Security Problem

A vector store is not just another database.

It is a searchable knowledge layer designed to make information easier to retrieve. That is its value. It is also its risk.

If source documents contain personally identifiable information, customer records, payment data, commercial secrets, credentials, or regulated content, that information can be carried into the AI pipeline.

The typical flow looks like this:

  1. Source data is selected
  2. Documents are extracted
  3. Content is chunked
  4. Chunks are converted into embeddings
  5. Embeddings and metadata are stored in a vector database
  6. AI applications retrieve relevant chunks at runtime

The danger is that many organisations focus their security attention from step four onwards.

That is too late.

The real control point is before chunking.

Why Chunking Changes the Risk Profile

Chunking breaks source content into smaller segments so that it can be embedded and retrieved efficiently. This is a normal and necessary part of most AI retrieval pipelines.

But chunking can also fragment context.

A full document may clearly show that a section contains sensitive customer information. Once broken into smaller chunks, the same content may be harder to classify, harder to govern, and harder to trace back to its original sensitivity.

For example, a customer record might be split across multiple chunks:

Name and address in one chunk
Account history in another chunk
Support notes in another chunk
Transaction references in another chunk

Each chunk may look less sensitive in isolation, but together they may still expose regulated or confidential information.

This is why sensitive data discovery and masking must happen before chunking, not after.

Embeddings Are Not a Safe Place to Fix Data

A common misconception is that once text is converted into embeddings, the sensitive data is no longer present in a usable form.

That assumption is dangerous.

Embeddings are mathematical representations, but they are still derived from the original content. They are designed to preserve semantic meaning. If sensitive information influenced the embedding, then the vector store may still support retrieval patterns that expose, infer, or reconstruct sensitive context.

More importantly, most vector stores also retain the original text chunk or associated metadata alongside the embedding. That retained text is often what gets passed back into the AI prompt during retrieval.

Trying to clean up the vector store after ingestion is complex. You need to identify affected chunks, remove or replace embeddings, update indexes, regenerate metadata, and prove that the old sensitive content is no longer retrievable.

That is operationally messy and difficult to evidence.

The better approach is prevention.

The Left of Chunking Principle

To secure a vector store properly, organisations should adopt a simple principle:

Sensitive data must be discovered, classified, masked, or excluded before chunking begins.

This means the AI ingestion pipeline should not start with raw enterprise data. It should start with governed, profiled, and approved data.

Before any document is chunked, the organisation should ask:

Does this content contain PII?
Does it contain payment data?
Does it contain health, financial, legal, or regulated information?
Does it contain internal credentials, secrets, or access tokens?
Does it contain commercially sensitive information?
Is this content approved for AI retrieval?
Should this content be masked, redacted, tokenised, subsetted, or excluded?

Only after these checks should the data move into the chunking and embedding process.

What Good Looks Like

A secure vector store pipeline should include several control points before ingestion.

1. Data Profiling

Source data should be profiled to identify sensitive fields, patterns, and content types. This includes structured data, semi structured data, and unstructured documents.

Profiling should detect known patterns such as names, addresses, phone numbers, emails, account numbers, payment details, dates of birth, tax identifiers, and other regulated attributes.

It should also support business specific rules. For example, policy numbers, claim references, customer identifiers, internal project codes, or application specific sensitive fields.

For more on the role of profiling, see Unveiling the Power of Data Profiling.

2. PII Discovery and Classification

Sensitive data should be classified before it enters the AI pipeline.

Not all sensitive data carries the same risk. Some content may be public. Some may be internal. Some may be confidential. Some may be regulated. Some may be strictly prohibited from AI ingestion.

Classification allows organisations to apply different treatment rules depending on risk.

3. Masking and Redaction

Where data is useful but sensitive, masking should be applied before chunking.

This may include replacing names, account numbers, addresses, or other sensitive values with realistic but non sensitive alternatives.

In other cases, redaction may be more appropriate. For example, removing secrets, credentials, payment card details, or highly regulated information entirely.

The key point is that the chunking engine should only see data that has already been secured.

For a practical introduction to protecting PII, see How to Mask PII Data.

4. Validation

Masking is not complete until it is validated.

Organisations should verify that sensitive values have been removed, replaced, or protected according to policy. This validation should happen before embedding, not after the vector store has already been populated.

Validation should also create evidence. This matters for audit, compliance, and internal risk management.

This is where automated compliance validation becomes important. Enov8’s Data Compliance Suite DevOps Edition is designed to help teams profile, mask, validate, and evidence compliance across the data lifecycle.

5. Metadata Governance

Metadata can be just as risky as the document content.

A chunk may be masked correctly, but its metadata may still expose a customer name, file path, department, case number, system name, or confidential classification.

Metadata should be reviewed and governed as part of the same pre chunking control process.

Access Control Is Necessary, But Not Sufficient

Some organisations assume that vector store security can be solved through access control alone.

Access control is important, but it is not enough.

If sensitive data is stored in the vector database, then the organisation must manage every downstream access path, every AI application, every prompt flow, every retrieval rule, every administrator role, and every integration.

That creates ongoing risk.

A stronger model is to combine access control with data minimisation.

Do not just ask who can access the vector store.

Ask whether the sensitive data should be in the vector store at all.

Why This Matters for Enterprise AI

Enterprise AI is moving quickly. Teams are experimenting with copilots, document search, knowledge assistants, support bots, engineering assistants, and operational intelligence tools.

The business value is clear.

But without strong data controls, vector stores can become unmanaged reservoirs of sensitive enterprise knowledge.

This creates several risks:

Regulatory exposure
Customer privacy breaches
Internal data leakage
Commercial confidentiality issues
AI responses based on inappropriate data
Poor auditability
Difficulty proving what data was ingested
Difficulty removing sensitive data after the fact

The more AI becomes embedded into business operations, the more important these controls become.

The Practical Architecture

A safer enterprise AI pipeline should look like this:

Source Data
Data Profiling
PII and Sensitive Data Discovery
Classification
Masking, Redaction, or Exclusion
Validation
Approved AI Ready Data
Chunking
Embedding
Vector Store
Controlled Retrieval
AI Response

This architecture shifts security to the left.

It ensures that sensitive data is controlled before it becomes searchable AI context.

The Role of Test Data Management Thinking

This is where traditional Test Data Management disciplines become highly relevant to AI.

For years, TDM has focused on profiling, masking, subsetting, generating, validating, and governing data for safe use outside production.

The same principles now apply to AI data pipelines.

The question is no longer only:

Can we provide safe data for testing?

It is also:

Can we provide safe data for AI?

The disciplines are closely aligned. Both require discovery, classification, masking, validation, repeatability, and evidence.

AI does not remove the need for data governance. It increases it.

Final Thought

Securing a vector store is not just a database security exercise.

It is a data lifecycle control challenge.

The most important decision happens before the first chunk is created.

If sensitive data is allowed into the pipeline too early, every downstream control becomes harder. If sensitive data is profiled, classified, masked, and validated before chunking, the organisation starts from a much stronger position.

The rule is simple:

Secure the data before you chunk it.

That is the foundation for safer enterprise AI.