CacheShuffle: An Oblivious Shuffle Algorithm Using Caches

Sarvar Patel, Giuseppe Persiano, Kevin Yeo

Abstract

Oblivious shuffling is a critical component for privacy-preserving cloud storage, yet existing methods often suffer from high bandwidth overhead. This paper introduces CacheShuffle, a suite of algorithms that leverage client-side caching and a novel concept of $K$-obliviousness to significantly reduce communication costs. By focusing on hiding only "touched" blocks—those an adversary has already observed—the proposed methods achieve up to a 4.5x bandwidth improvement over the state-of-the-art Melbourne Shuffle, reaching the theoretical lower bound of $2N$ bandwidth in specific configurations.

Introduction

In cloud storage environments, encryption alone is insufficient to protect user privacy. Adversarial servers can observe data access patterns—the sequence of encrypted blocks a client retrieves—to infer sensitive information. Oblivious RAM (ORAM) constructions mitigate this by periodically "shuffling" data to break the link between old and new memory locations. However, the efficiency of ORAM is often bottlenecked by the communication cost of these shuffles. Traditional solutions, such as the Melbourne Shuffle, require moving each block approximately 18 times, creating a substantial overhead for large datasets. The challenge lies in performing this shuffle with minimal bandwidth overhead while maintaining a small client-side memory footprint.

Methodology

The authors propose several variants of CacheShuffle to address different client constraints and security requirements, centered around the use of a small client-side cache to manage data distribution.

1. CacheShuffleRoot

Designed for clients with $O(\sqrt{N})$ local memory, this algorithm partitions data into source groups and destination buckets. A common issue in random mapping is the "balls and bins" problem, where some buckets may overflow. Instead of over-provisioning bandwidth to handle every worst-case scenario, CacheShuffleRoot utilizes a small client-side cache to temporarily store overflow blocks. This approach strips away the massive overhead required by deterministic algorithms.

2. $K$-Oblivious Shuffling

A key contribution of this work is the formalization of $K$-obliviousness. In many ORAM scenarios, an adversary only gains information about blocks that have been "touched" (accessed) since the last shuffle. By focusing on protecting these $K$ blocks rather than the entire set $N$, the authors developed KCacheShuffleBasic, which achieves the optimal bandwidth of $2N$—reading every block once and writing it back once.

3. KCacheShuffleDummy

To support ORAMs that utilize "dummy" blocks to mask real accesses, this variant employs polynomial interpolation. The client uploads data as a mathematical function, allowing the server to evaluate and retrieve real data without being able to distinguish it from dummy values. This shift toward server-side computation drastically reduces the amount of data sent over the wire.

Results and Performance Analysis

The performance of the CacheShuffle suite was evaluated against the Melbourne Shuffle using simulated data on arrays of up to one million blocks. The theoretical and empirical analysis, summarized in the table below, demonstrates significant improvements in bandwidth efficiency.

Comparison of Client Storage and Bandwidth requirements for various shuffling algorithms.

As shown in the data, CacheShuffleRoot reduces bandwidth from $\approx 18N$ to $(4 + \epsilon)N$, representing a 4.5x improvement. For $K$-oblivious scenarios, KCacheShuffleBasic hits the absolute lower bound of $2N$. When integrated into a "Square Root ORAM" construction, these algorithms provide at least a 5x improvement in amortized bandwidth compared to previous variants. Experimental simulations confirmed that the required client cache size remains small and stable even as the number of blocks increases into the millions.

Conclusion and Future Work

CacheShuffle represents a significant step forward in making oblivious storage practical for real-world applications. By leveraging client-side caching and the $K$-oblivious model, the authors have reached the theoretical limits of communication efficiency. While the current algorithms are primarily "move-based" to ensure compatibility with simple cloud storage like Amazon S3, future work may explore more complex server-side computations to push bandwidth even lower in scenarios involving dummy blocks. Additionally, adapting $K$-oblivious techniques for tree-based ORAM structures remains an open area for optimization.

Summary updated

BibTeX
@inproceedings{patel2018cacheshuffle,
  author = {Sarvar Patel and Giuseppe Persiano and Kevin Yeo},
  title = {{CacheShuffle: An Oblivious Shuffle Algorithm Using Caches}},
  booktitle = {ICALP},
  year = {2018},
  doi = {10.4230/lipics.icalp.2018.161},
}
Figure