1. Introduction
1.1. Background and Motivation
Fully homomorphic encryption (FHE) [
1,
2,
3] has become a foundational tool for secure outsourced computation, especially in the context of untrusted cloud-based data management. One prominent application scenario involves outsourced database systems [
4], where data owners upload encrypted records to untrusted servers while retaining the ability to execute structured queries, such as selections, aggregations, and joins, directly over encrypted data.
While recent advances in FHE have significantly reduced the cost of homomorphic operations [
5], the act of encryption itself remains a major bottleneck. This asymmetry is particularly pronounced in streaming and dynamic database environments, where data ingestion is frequent and continuous, whereas query frequency may be sporadic or lightweight in comparison. In such settings, the performance-critical path is often not the homomorphic evaluation, but the initial data encryption.
To address this, the Rache system [
6] proposed an encryption caching technique in which ciphertexts are precomputed for each individual plaintext value and reused when needed. However, this approach fundamentally assumes that each message is a scalar plaintext. In practice, most FHE applications—including encrypted database systems—rely on batch encoding, where a vector of plaintext values is packed into a single ciphertext using polynomial embeddings. This batching mechanism is essential for scalability and aligns with SIMD-style vectorized processing.
Unfortunately, scalar precomputation schemes such as Rache do not generalize to batched encodings. Attempting to precompute ciphertexts on a per-coordinate basis breaks the structural invariants of the encoded plaintext polynomial, leading to semantically invalid ciphertexts and disrupting the vector semantics needed for homomorphic rotation, slot-wise evaluation, and packed aggregation.
This mismatch raises a fundamental question:
Can we perform ciphertext precomputation at the vector level, while preserving compatibility with FHE’s batched encoding and without performing any encryption at runtime?
1.2. Proposed Work
In this paper, we propose a new algebraic framework for compile-time ciphertext generation in batched fully homomorphic encryption (FHE) systems. The central idea is to decouple ciphertext generation from encryption by defining a reusable synthesis interface, that is, a randomized module morphism that constructs ciphertexts from precomputed encrypted bases.
We model the plaintext space as a finite -module, where each vector can be expressed as a linear combination of standard basis elements. Prior to deployment, we precompute and cache the encryptions of these basis vectors—each embedded via batching into a polynomial ring such as . At runtime, a new plaintext vector is encrypted by computing the linear combination , where each is a cached ciphertext. This process eliminates all online encryption operations, relying solely on ciphertext-level addition and scalar multiplication.
To ensure semantic security, we augment the synthesized ciphertext with a random masking term drawn from a pool of independently generated encryptions of the zero vector. Each noise ciphertext is sampled offline using fresh randomness, forming a high-entropy ensemble over . This masking strategy maintains IND-CPA indistinguishability while preserving layout compatibility for downstream computation.
The resulting framework enables ciphertext synthesis that is both algebraically sound and cryptographically secure. By defining ciphertext generation as a randomized morphism over the module structure, we obtain a compile-time encryption primitive with provable security guarantees under standard assumptions. Our proof strategy uses a hybrid game reduction that bounds adversarial advantage in terms of the IND-CPA security of the underlying FHE scheme.
Finally, this synthesis-based approach provides practical benefits in system-level deployments. In settings such as outsourced encrypted databases or streaming data pipelines, where high-throughput ingestion is required, our method enables an amortized encryption-free runtime path. It integrates seamlessly with existing FHE APIs, preserves slot semantics, and supports symbolic downstream operations such as rotation, packing, and aggregation.
1.3. Contributions
This paper provides the following contributions:
An algebraic interface for compile-time encryption. We introduce a formal abstraction for ciphertext synthesis based on randomized module morphisms, capturing a reusable and backend-agnostic structure for encrypted vector generation.
A concrete realization via basis caching. We instantiate this interface using a precomputed ciphertext basis and randomized zero masking, enabling ciphertext synthesis without any encryption at runtime.
Formal security under standard assumptions. We prove that the synthesis procedure satisfies IND-CPA security, using a hybrid game argument that reduces the adversarial advantage to the underlying FHE encryption scheme.
System-level compatibility and ingestion acceleration. Our framework defines a new primitive for encrypted data ingestion, preserving semantic compatibility with FHE APIs while reducing online encryption costs through compile-time vector-level reuse.
1.4. Applications
Compile-time ciphertext synthesis opens up a new paradigm for secure data processing, where encryption can be performed ahead of time, entirely offline, during system compilation or data preparation. This approach is especially advantageous in applications where the structure of data or queries is known in advance, allowing encryption to be decoupled from runtime execution. We highlight several scenarios where this model offers both practical benefits and security guarantees.
1.4.1. Immutable Outsourced Databases
Many outsourced databases—such as regulatory archives, financial ledgers, and versioned scientific repositories—have a largely static or append-only structure. For such deployments, it is feasible to precompile encrypted representations of frequently queried values (e.g., thresholds, aggregates, or classification anchors). By performing encryption at compile time, our approach eliminates the runtime cost of public-key encryption and enables efficient query execution on homomorphically encoded data.
1.4.2. Query Template Compilation in ML Inference Pipelines
In privacy-preserving machine learning systems, inference often relies on a fixed set of queries over encrypted input embeddings. For example, content moderation systems, facial recognition modules, or document classifiers typically evaluate a static model against varying input data. By compiling encrypted model weights and template vectors offline, our method removes the need to encrypt model-side data during inference, reducing latency and client-side load.
1.4.3. Secure Code Generation for Embedded Systems
Resource-constrained devices such as IoT sensors or edge processors cannot afford online encryption due to limited computation and power. Using compile-time encrypted constants (e.g., reference thresholds, expected sensor baselines), developers can generate firmware that embeds ciphertexts directly into the binary. These constants can then participate in encrypted computation (e.g., homomorphic comparison or aggregation) without leaking plaintext or requiring runtime cryptographic operations.
1.4.4. Pre-Encrypted Search in Compliance Auditing
Auditing frameworks often evaluate a known set of rules or compliance conditions against a stream of incoming records. Since the conditions (e.g., legal thresholds, policy markers) are fixed, our compile-time encryption approach allows these rules to be encoded once and reused across audits. This improves performance and ensures that sensitive audit logic remains protected throughout the process.
These scenarios demonstrate the practical value of separating encryption from execution. By enabling encryption to occur during compilation or deployment—rather than in response to each runtime query—our framework reduces online overhead while preserving full homomorphic compatibility and security guarantees.
2. Preliminaries
2.1. Algebraic Structures
2.1.1. Group
A group is a set G equipped with a binary operation that satisfies the following three properties: associativity ( for all ), the existence of an identity element such that for all , and the existence of inverses, meaning that for every there exists an element with . If the operation is also commutative—i.e., for all —then G is called an abelian group. Abelian groups are the additive backbone of many algebraic structures, including rings, modules, and vector spaces, and play a central role in the algebraic foundations of cryptography.
2.1.2. Ring
A ring is a set R equipped with two binary operations + and · such that forms an abelian group and is associative and distributes over addition. Many FHE schemes are defined over polynomial rings of the form , where is typically a cyclotomic polynomial. These rings support efficient arithmetic while maintaining the algebraic structure needed for encryption homomorphism.
2.1.3. Field
A field is a commutative ring in which every non-zero element has a multiplicative inverse. Fields serve as the underlying scalars for modules and vector spaces and are often used for defining plaintext domains in leveled FHE schemes, especially those based on arithmetic circuits over or .
2.1.4. Vector Space
Let F be a field. A vector space over F is a set V equipped with an abelian group structure and a scalar multiplication operation , such that scalar multiplication distributes over both field addition and vector addition, and respects associativity and identity with respect to F. Unlike Euclidean vectors, the elements of V need not have coordinates or geometric form—they may be functions, polynomials, or other algebraic objects. What matters is that linear combinations of elements using scalars from F remain within V.
2.1.5. Module
A module is a generalization of a vector space where the scalars form a ring instead of a field. Given a ring, R, an R-module, M, is an abelian group with a scalar multiplication satisfying linearity properties. In batched FHE systems, plaintext vectors can be viewed as elements in an R-module, and encryption functions act as module homomorphisms (preserving both addition and scalar multiplication).
2.2. Fully Homomorphic Encryption Schemes (Based on Arithmetic Operations)
2.2.1. Gentry’s Thesis
Gentry’s seminal 2009 thesis [
1] introduced the first fully homomorphic encryption (FHE) scheme, based on ideal lattices and bootstrapping. The scheme supported the evaluation of arbitrary circuits over encrypted data but was initially impractical due to large ciphertext sizes and expensive noise management. Bootstrapping remains a defining feature of FHE, allowing the refreshing of ciphertexts to sustain arbitrary computation depth.
2.2.2. Schemes for Integers
Integer-based schemes, such as BGV [
7] and BFV [
2], operate over plaintexts in
, encoded into polynomials and encrypted using ring-LWE hardness assumptions. These schemes enable both additive and multiplicative homomorphisms and support batching via the Chinese remainder theorem (CRT). Integer-based schemes are widely used in database-style workloads due to their modular arithmetic semantics.
2.2.3. Schemes for Floating Numbers
CKKS [
3] is a prominent FHE scheme that supports approximate arithmetic over complex numbers. It encodes floating-point vectors into plaintext polynomials and allows multiplicative and additive homomorphisms with controllable error. CKKS is particularly useful in machine learning and numerical workloads due to its natural support for dot products and real-valued activation functions.
2.3. Encoding and Encryption of Arithmetic FHE Schemes over Vectors
Modern arithmetic FHE schemes such as BGV [
7], BFV [
2], and CKKS [
3] support batch encryption, enabling multiple plaintext values to be packed into a single ciphertext. This is achieved by leveraging the Chinese remainder theorem (CRT) structure of the underlying plaintext ring and encoding vectors as elements in a quotient ring.
Let
t be the plaintext modulus and
N be a power-of-two cyclotomic order. The plaintext ring is defined as follows:
which is isomorphic (under suitable conditions) to the direct product of
N scalar slots:
This isomorphism allows a plaintext vector
to be encoded as a polynomial
using either coefficient embedding (for BFV/BGV) or canonical embedding (for CKKS).
The encryption algorithm is then applied to
in the larger ring
, where
is the ciphertext modulus. A standard public key encryption (PKE) procedure yields a ciphertext as follows:
such that decryption satisfies the following:
where
is a bounded noise polynomial, and the final message is recovered modulo
t.
In CKKS, the encoding maps complex vectors into
via canonical embedding, and the decryption process recovers an approximation of the original message, i.e.,
with multiplicative noise that grows during homomorphic operations.
The packed ciphertext
supports component-wise homomorphic operations such as addition and scalar multiplication:
where
.
More advanced operations, such as slot-wise rotation and permutation, are implemented using Galois keys, enabling ciphertext manipulation without decryption.
This batched encoding mechanism enables SIMD-style parallelism across slots and is crucial for performance in encrypted databases, neural networks, and scientific computing pipelines. However, it also imposes structural constraints on how ciphertexts must be constructed and interpreted—constraints that any precomputation or synthesis-based encryption technique must preserve.
3. Abstract Interface for Compile-Time Ciphertext Synthesis
We formalize the notion of compile-time encrypted vector construction as an algebraic interface. This interface captures the essential properties of synthesis-based ciphertext generation schemes, enabling reasoning about structure, security, and reusability without reference to a particular cryptographic encoding.
3.1. Interface Semantics
Let
denote the plaintext module and
the ciphertext module under a leveled fully homomorphic encryption scheme. A ciphertext synthesis interface is a randomized map:
parameterized by an encrypted basis
and a randomness distribution
over noise terms.
In its deterministic core,
acts as a
-module homomorphism:
To ensure semantic security, which is composed of a noise-injection layer:
where
is a randomized endofunctor over the ciphertext category, mapping ciphertexts to indistinguishable variants while preserving decryption correctness.
This interface can be viewed as a morphism in a fibered category of encrypted modules, where each instantiation lifts a plaintext vector to an encrypted fiber over the base ring . The structure of defines the embedding geometry, while noise preserves indistinguishability across fibers.
3.2. Correctness as Exactness
Decryption defines a projection
. Interface correctness requires the following:
except with negligible error due to noise overflow. This condition corresponds to the existence of an exact sequence:
where
is the noise submodule. The synthesis interface produces ciphertexts in the preimage of
under
, with the randomness distributed across
.
3.3. Security Definition
We define IND-CPA security of
via a two-message challenge game, assuming the basis
and noise pool are fixed and public. For all PPT adversaries
, we define the advantage:
The interface is secure if this advantage is negligible in
, under the assumption that the noise distribution
consists of honest encryptions of
0 under a semantically secure scheme.
3.4. Interface Instantiability
The concrete scheme described in
Section 4 instantiates
via precomputed encryptions of unit basis vectors, along with a finite pool of randomized zero ciphertexts. However, the abstraction also encompasses alternative instantiations with nonstandard bases, structured embedding layouts, or symbolic synthesis graphs. The interface framework allows such instantiations to be analyzed uniformly with respect to algebraic behavior and security constraints.
4. Vector Caching for FHE
We now present a concrete instantiation of the abstract interface defined in
Section 3. This instantiation realizes the
map using a precomputed ciphertext basis and a pool of randomized zero encryptions. The construction satisfies the algebraic and security properties of the interface and forms the foundation for our compile-time FHE pipeline.
We begin by specifying notation and algebraic context, followed by the basis construction, randomized synthesis procedure, and runtime algorithms.
4.1. Notation
Let and denote the plaintext and ciphertext polynomial rings, respectively, where is a power-of-two cyclotomic polynomial. Let N denote the ring degree and be the number of plaintext slots (i.e., the batch size).
We denote by
a set of precomputed ciphertexts, where each
is the encryption of the
i-th unit basis vector
, embedded into
via coefficient or canonical embedding.
Let be a semantically secure public-key FHE encryption scheme with homomorphic addition and scalar multiplication, and let be the corresponding decryption function.
We use to denote the plaintext vector to be encrypted, and let denote the synthesized ciphertext produced from basis .
4.2. Construction
We define the synthesized ciphertext
as follows:
This construction does not invoke the encryption algorithm at runtime. Instead, it reuses precomputed ciphertexts of basis vectors and leverages the linear homomorphic properties of the FHE scheme:
The correctness of this construction follows directly from the module structure of the plaintext space and the preservation of linear operations under FHE encryption:
4.3. Randomization
To ensure semantic security and prevent deterministic ciphertext reuse, we inject a random ciphertext of zero into each synthesized output. Let
be a pool of independently generated encryptions of the zero vector:
where each
has fresh encryption randomness. During synthesis, we select a random index
and output:
This randomization ensures that multiple encryptions of the same plaintext vector
yield computationally indistinguishable ciphertexts, satisfying IND-CPA under the assumption that
is semantically secure.
4.4. Overall Algorithm
We now describe the full pipeline for compile-time encryption via vector synthesis. The process is divided into the following stages: (1) an offline precomputation stage in which the ciphertext basis and randomized noise pool are constructed, and (2) a runtime synthesis stage that generates ciphertexts for arbitrary plaintext vectors using only cached ciphertexts and ciphertext-level operations.
Algorithm 1 initializes the ciphertext basis
by encrypting the standard basis vectors
using the public key. These basis vectors are embedded into the polynomial ring and encrypted using the FHE scheme’s batch encoding interface. In addition, a pool
of randomized encryptions of the all-zero vector is generated. Each
is independently sampled using fresh encryption randomness to ensure semantic variability.
Algorithm 1: |
Input: Dimension d; number of random noise samples s; public key Output: Cached basis ; noise pool |
![Cryptography 09 00044 i001]() |
At runtime, Algorithm 2 takes as input a plaintext vector
and synthesizes the corresponding ciphertext by computing a linear combination of the precomputed basis ciphertexts:
where
is a randomly chosen noise ciphertext. The final ciphertext is computationally indistinguishable from a freshly encrypted version of
under IND-CPA security, assuming the underlying encryption scheme satisfies semantic security.
Algorithm 2: |
Input: Plaintext vector ; Precomputed basis ; Noise pool . Output: Ciphertext such that . |
![Cryptography 09 00044 i002]() |
Complexity
The runtime cost of is linear in the vector dimension, d, requiring d ciphertext-level scalar multiplications and additions over the ciphertext module . Assuming constant-time modular operations—as achieved in NTT-optimized FHE backends—the total runtime per synthesized ciphertext is . The offline precomputation phase involves encryption calls, where d is the number of basis vectors and s is the size of the randomized zero pool. Once initialized, the online phase is encryption-free and parallelizable across slots, enabling high-throughput ingestion without repeated use of cryptographic primitives.
5. Correctness and Noise Analysis
In this section, we analyze the correctness and noise behavior of the proposed ciphertext synthesis procedure under standard fully homomorphic encryption (FHE) semantics. Our focus is to verify that synthesized ciphertexts decrypt correctly to their intended plaintext vectors and remain compatible with subsequent homomorphic operations.
5.1. Decryption
Let
be a ciphertext synthesized via Algorithm 2, i.e.,
where each
is a ciphertext encrypting a basis vector
under standard polynomial encoding.
Decryption proceeds using the secret key
:
where
is the aggregated noise term arising from the homomorphic additions and scalar multiplications.
Correct decryption holds as long as
ensuring that reduction modulo
t eliminates noise and yields the correct plaintext vector.
5.2. Homomorphic Addition
Let
and
be two synthesized ciphertexts. Their homomorphic sum is as follows:
By linearity of encryption and noise:
where the new noise
is the sum of the individual noise components from both ciphertexts. Assuming noise growth is additive, we have the following:
Thus, additive homomorphism is preserved, and the noise growth is predictable and controlled.
5.3. Homomorphic Multiplication
Let
and
be synthesized ciphertexts represented in a two-component form:
Their homomorphic product
yields a ciphertext with three components:
To convert this ciphertext back into the standard two-component form
, a
relinearization step is required. Given a relinearization key
, we perform the following:
where
,
are decomposition-based key-switching functions:
This yields a valid ciphertext of
, where ∘ denotes slot-wise multiplication (or approximate multiplication in CKKS). The resulting noise grows quadratically:
In leveled schemes, such as BFV or BGV, a
modulus-switching step may be applied post-multiplication to reduce noise. Given a modulus chain,
, switching from level
ℓ to
involves rescaling:
and correspondingly:
However, modulus switching also introduces the rounding error, and in schemes like CKKS, approximate rescaling impacts decryption accuracy.
Hence, homomorphic multiplication in synthesized ciphertexts is functionally identical to native ciphertext multiplication but inherits the usual cost in both depth and noise. Correctness is maintained as long as the total noise remains below the decryption threshold:
6. Security Analysis
6.1. Security Model
We consider the standard notion of semantic security under the chosen-plaintext attack (IND-CPA). Let denote a semantically secure public-key encryption scheme. Let denote our proposed synthesized ciphertext construction using the precomputed basis and randomized noise pool .
We define the adversary’s goal as distinguishing two synthesized ciphertexts corresponding to plaintext vectors of its choice, drawn from the same message space . Formally, the IND-CPA experiment proceeds as follows:
Definition 1 (IND-CPA Game for Synthesized Encryption). Let be a PPT adversary. The IND-CPA advantage of in distinguishing synthesized ciphertexts is defined by the following game:
- 1.
The challenger runs and sends to .
- 2.
The challenger computes and , and gives to .
- 3.
submits two equal-length plaintext vectors .
- 4.
The challenger selects uniformly at random, and returns .
- 5.
outputs a guess .
We define the adversary’s advantage as follows: 6.2. Assumptions and Reduction Strategy
Our security analysis is based on a standard reduction to the IND-CPA security of the underlying FHE encryption scheme.
We assume that the public-key encryption function is semantically secure under chosen-plaintext attacks. That is, for all PPT adversaries , consider the standard IND-CPA game:
The challenger runs and sends to .
submits two messages .
A bit is chosen uniformly at random, and the challenger returns .
outputs a guess .
We define the adversary’s advantage as follows:
We assume that
is negligible in the security parameter
.
Our goal is to show that if any adversary has a non-negligible advantage in the IND-CPA game (as defined above), then we can construct an adversary that breaks the IND-CPA security of with a non-negligible advantage.
This reduction proceeds via a sequence of hybrid games (detailed in the next section), in which each game-hop simulates one coordinate substitution between two synthesized ciphertexts. Each hop relies on the indistinguishability of encryptions under , and the cumulative advantage is bounded via a union bound over d coordinate transitions.
6.3. Provable Security
We now prove that if the underlying encryption scheme is IND-CPA secure, then the synthesized encryption scheme is also IND-CPA secure.
Our strategy is to construct a sequence of hybrid games , where corresponds to the challenge ciphertext generated using , and corresponds to the ciphertext for . In each intermediate game , the first i coordinates of are replaced with those of , while the remaining coordinates remain unchanged. By bounding the distinguishing advantage between successive games, we obtain the final security bound via a standard hybrid argument.
6.3.1. Game
This is the real-world experiment with the challenge ciphertext:
6.3.2. Game
In this game, the challenge ciphertext is as follows:
That is, the first
i slots are taken from
, and the rest from
.
6.3.3. Game
This corresponds to the synthesized ciphertext of
:
Note that and correspond exactly to the real challenge cases for and , respectively.
Lemma 1 (Single-hop indistinguishability).
For each , let and be defined as above. If the underlying encryption scheme is IND-CPA secure, then for any PPT adversary : for negligible function ϵ in the security parameter λ.
Proof.
We define the distinguishing difference:
The difference between
and
lies in a single coefficient
vs.
in the linear combination:
If can distinguish between games and with non-negligible probability, we can construct a reduction adversary that breaks the IND-CPA security of the underlying encryption scheme . Specifically, receives a challenge ciphertext corresponding to either or in a single-slot encryption instance. It embeds this challenge into a fully synthesized ciphertext by constructing , where encodes all other coordinates from the hybrid game. If correctly distinguishes whether or , then breaks the IND-CPA security of .
Hence, must be negligible. □
We now turn to the main result of this section. Building on the sequence of hybrid games and the indistinguishability lemma established for adjacent hybrids, we apply a telescoping argument over the entire chain. The accumulated advantage across all transitions allows us to bound the distinguishing probability of any adversary in the full -IND-CPA experiment. The result is formalized in the following theorem:
Theorem 1 (IND-CPA Security of Synthesized Encryption).
Let be a semantically secure public-key encryption scheme. Then the synthesized encryption scheme , constructed via basis combination and random zero injection, is also IND-CPA secure. In particular, for any PPT adversary , there exists a negligible function such that we have the following: Proof.
Let be the hybrid game sequence constructed in the previous subsection, where corresponds to a synthesized encryption of and to that of . Each intermediate game partially interpolates between the two vectors by encrypting a message whose first i coordinates are from and the remaining coordinates from .
Let denote the probability that the adversary outputs 1 in game , i.e., . The adversary’s overall advantage in the -IND-CPA experiment is given by the absolute difference .
This difference can be expressed as a telescoping sum over adjacent game transitions:
Applying the triangle inequality, this yields an upper bound:
Each pair of games differs in a single coordinate of the synthesized plaintext vector. Specifically, only the -th coordinate is switched from to , while all other components are held fixed. Thus, each transition corresponds to a one-coordinate hybrid hop.
By the security of the underlying encryption scheme
, and in particular the indistinguishability guaranteed by Lemma 1, we know that for each
i, the distinguishing advantage between
and
is bounded by a negligible function
, where
is the security parameter. That is,
We now apply the union bound, a standard tool in cryptographic reductions. In its probabilistic form, it states that for any finite collection of distinguishable events, the probability of at least one occurring is bounded by the sum of their individual probabilities. When applied to game-hopping sequences, this translates to the total distinguishing advantage across a chain of hybrids being at most the sum of the individual hop advantages. Thus,
To complete the argument, we define a function, . Each is negligible by assumption, and d is polynomially bounded in since it corresponds to the number of plaintext slots. It is a standard closure property of negligible functions that a finite sum of negligible functions—with the number of terms bounded by a polynomial—remains negligible. Hence, is negligible.
We conclude that the adversary’s advantage satisfies the following:
as required. □
7. Related Work
7.1. Algorithmic Optimizations for FHE
The advent of homomorphic encryption (HE) has enabled secure computation over encrypted data, a paradigm originally made viable by Gentry’s pioneering construction [
1]. Since then, various schemes have been developed to support different computation models and performance trade-offs. Notable examples include BFV [
2,
8], BGV [
7], and CKKS [
3], which have been implemented in libraries such as Microsoft SEAL [
9] and OpenFHE [
10]. TFHE [
11], in particular, supports Boolean gate operations and has been significantly accelerated by circuit-level bootstrapping improvements [
12,
13].
Recent algorithmic work has focused on tuning performance along multiple axes. In the CKKS scheme, which supports approximate arithmetic over complex numbers, optimizations have targeted bootstrapping [
14], SIMD-aware packing [
15], and machine learning workloads [
16,
17,
18]. BFV and BGV, with their support for exact modular arithmetic, remain a standard choice for applications requiring stronger correctness guarantees [
19]. Across schemes, implementation-level enhancements have improved low-level primitives such as NTT, key switching, and ciphertext relinearization [
2,
20,
21,
22,
23]. In parallel, cross-domain insights from deep learning and IoT security have occasionally inspired representation-level decompositions that may inform future FHE system design [
24].
Our work builds on these algorithmic foundations by revisiting the ciphertext construction interface itself. Rather than modifying cryptographic primitives or introducing new circuits, we treat vector encryption as a structured synthesis process grounded in basis expansion and symbolic slot control. This perspective enables efficient compile-time ingestion, tight coordination over encoder reuse and randomized noise injection, and the formulation of encryption as a system-level abstraction layer.
7.2. High-Performance FHE Computing with Hardware Acceleration
The high computational and bandwidth demands of fully homomorphic encryption (FHE) have inspired a broad class of hardware acceleration techniques across GPUs, FPGAs, and ASICs. GPU-based approaches leverage high memory bandwidth and SIMD-style parallelism to accelerate core FHE operations such as modular multiplication and bootstrapping. For instance, Jung et al. [
25] reported a 257× speedup on an NVIDIA Tesla V100 for bootstrapping tasks, while Tan et al. [
26] proposed floating-point approximations for GPU-friendly cryptographic kernels, achieving up to 150× acceleration. Open-source libraries like cuFHE [
27] and nufhe [
28] further explore software abstractions over GPU backends.
More recently, Poseidon [
29] demonstrated a practical FPGA-based FHE accelerator that decomposes higher-level routines into a shared set of reusable operator cores—such as NTT, modular arithmetic, and automorphism—enabling hardware-level reuse and efficient scheduling under constrained resources. Poseidon achieves up to 1300× operator-level speedup and 10× end-to-end performance gains over GPU baselines, rivaling or exceeding contemporary ASIC implementations in several benchmarks. Its use of techniques such as NTT fusion and HFAuto illustrates the value of algebraic decompositions and memory-aware co-design in FHE acceleration.
ASIC accelerators, including F1 [
30], BTS [
31], and CraterLake [
32], push the performance frontier by tightly integrating bootstrapping, rotation, and rescaling into fully pipelined microarchitectures with dedicated multi-hundred MB scratchpads. However, such designs are often constrained to fixed parameters, costly to manufacture, and remain largely impractical for general-purpose deployment.
In contrast, our work is orthogonal and complementary to these efforts. Rather than accelerating encryption via specialized hardware, we eliminate the encryption bottleneck altogether by transforming ciphertext generation into a compile-time symbolic process based on algebraic synthesis and vector-level precomputation. This enables efficient encrypted ingestion even within software-only or resource-constrained systems.
7.3. FHE for Outsourced Databases
Several systems have explored the integration of fully homomorphic encryption (FHE) into outsourced database environments, where sensitive data is stored in encrypted form and queried without decryption. Symmetria [
4] applies leveled FHE to support SQL-style query evaluation over encrypted relational tables. Its design emphasizes query planner integration and leverages SIMD-style batched homomorphic execution to evaluate selection and projection operations across tuples. However, the high cost of encryption, especially during data ingestion, remains a fundamental bottleneck.
The Rache framework [
6] takes a different approach by precomputing ciphertexts for all possible scalar plaintexts in small domains and caching them for reuse. This enables fast ingestion when plaintext reuse is common, and supports layout-aware optimization for memory and SIMD alignment. Nonetheless, the method does not naturally extend to vector-based encryption, where each ciphertext encodes a structured tuple of values. In such settings, coordinate-wise caching disrupts the structural semantics of the encoded polynomial, making it incompatible with downstream FHE operations such as rotation, slot masking, or aggregation.
These efforts underscore the importance of treating encryption not as a black-box primitive, but as a programmable interface between systems and cryptography. Our framework builds on this insight by enabling vector-level synthesis with full control over structural layout, symbolic decomposition, and secure randomness injection.
8. Final Remarks
This work proposes a new perspective on ciphertext generation in fully homomorphic encryption (FHE), shifting the focus from runtime encryption to compile-time algebraic synthesis. By precomputing a structured ciphertext basis and leveraging linearity in the encryption function, we eliminate the need for direct encryption during data ingestion, reducing overhead while preserving semantic correctness and security.
The proposed abstraction treats ciphertexts not merely as outputs of cryptographic primitives, but as composable objects synthesized from a reusable module of encrypted algebraic components. This design philosophy opens new possibilities in encrypted systems, where synthesis, slot-level layout control, and noise injection can be decoupled from cryptographic internals and expressed as part of the system architecture itself.
Beyond the specific construction introduced here, the broader message is conceptual—encryption, when viewed through the lens of algebraic programming, admits symbolic compilation strategies previously confined to plaintext computing. We believe this direction can serve as a foundation for further advances in encrypted database systems, bootstrappable encrypted pipelines, and secure compiler backends that reason about ciphertexts as algebraically structured data.
Looking ahead, an even deeper question emerges—can we eliminate encryption noise altogether, not by amortizing or refreshing it, but by constructing encryption schemes whose algebraic semantics are inherently noiseless? We suspect that such structures may lie beyond the conventional polynomial ring frameworks used in current lattice-based schemes. Candidate directions include the use of flat modules, cohomological vanishing in sheaf-theoretic encodings, or fiber product constructions that preserve exactness across encrypted morphisms. The technical barriers are considerable—extending exact sequences under encryption, controlling derived functors over non-reduced schemes, and establishing structural invariants in ciphertext categories—but the potential theoretical payoff is equally substantial. We welcome collaborations from researchers interested in the intersection of modern algebra and cryptographic structure, and view this as a long-term invitation to reimagine encrypted computation from first mathematical principles.