CacheShuffle: A Family of Oblivious Shuffles

Sarvar Patel, Giuseppe Persiano, Kevin Yeo · DOI

Abstract

We consider Oblivious Shuffling and K-Oblivious Shuffling, a refinement thereof. We provide efficient algorithms for both and discuss their application to the design of Oblivious RAM. The task of K-Oblivious Shuffling is to obliviously shuffle N encrypted blocks that have been randomly allocated on the server in such a way that an adversary learns nothing about the new allocation of blocks. The security guarantee should hold also with respect to an adversary that has learned the initial position of K touched blocks out of the N blocks. The classical notion of Oblivious Shuffling is obtained for K = N. We present a family of algorithms for Oblivious Shuffling. Our first construction, CacheShuffleRoot, is tailored for clients with $O(\sqrt{N})$ blocks of memory and uses $(4+ε)N$ blocks of bandwidth, for every $ε> 0$. CacheShuffleRoot is a 4.5x improvement over previous best known results on practical sizes of N. We also present CacheShuffle that obliviously shuffles using O(S) blocks of client memory with $O(N\log_S N)$ blocks of bandwidth. We then turn to K-Oblivious Shuffling and give algorithms that require 2N + f(K) blocks of bandwidth, for some function f. That is, any extra bandwidth above the 2N lower bound depends solely on K. We present KCacheShuffleBasic that uses O(K) client storage and exactly 2N blocks of bandwidth. For smaller client storage requirements, we show KCacheShuffle, which uses O(S) client storage and requires $2N+(1+ε)O(K\log_S K)$ blocks of bandwidth. Finally, we consider the case in which, in addition to the N blocks, the server stores D dummy blocks whose content is is irrelevant but still their positions must be hidden by the shuffling. For this case, we design algorithm KCacheShuffleDummy that, for N + D blocks and K touched blocks, uses O(K) client storage and $D+(2+ε)N$ blocks of bandwidth.

Introduction

In cloud storage environments, encryption alone is insufficient to protect user privacy. The access patterns—which files are accessed and when—can reveal sensitive information about the underlying data. Oblivious RAM (ORAM) addresses this by periodically reshuffling data on the server to break the link between logical addresses and physical locations. However, the Oblivious Shuffle operation is often the primary performance bottleneck, requiring significant bandwidth or complex sorting networks.

This paper introduces CacheShuffle, a family of algorithms designed to optimize this process. By leveraging client-side memory (caches) and introducing the concept of $K$-Oblivious Shuffling, the authors achieve substantial efficiency gains over existing methods like the Melbourne Shuffle.

The CacheShuffle Family

The core innovation of CacheShuffle lies in using a client-side cache as a "variance buffer." Instead of complex deterministic routing, the algorithms use randomized distribution phases:

  • CacheShuffleRoot: Optimized for clients with $O(\sqrt{N})$ memory, this algorithm uses a "Spray" phase to distribute blocks into server-side buckets and a "Recalibrate" phase to finalize their positions. The client-side cache handles statistical overflows, ensuring the process remains oblivious.
  • CacheShuffle: A recursive generalization that supports smaller client memory $O(S)$ by increasing the bandwidth to $O(N \log_S N)$.

K-Oblivious Shuffling

A key insight of this work is that in many ORAM scenarios, an adversary only knows the starting positions of a subset of "touched" blocks ($K$) rather than all $N$ blocks. The paper defines $K$-Oblivious Shuffling, where the goal is to make these $K$ blocks indistinguishable from the remaining $N-K$ blocks after the shuffle.

This refinement allows for even greater efficiency. For instance, KCacheShuffleBasic achieves a bandwidth of exactly $2N$—the theoretical minimum for reading and writing each block once—provided the client can store $O(K)$ blocks. For scenarios involving dummy blocks, KCacheShuffleDummy uses polynomial interpolation to allow the server to compute and place blocks obliviously without the client downloading the dummies.

Performance Comparison

The following table summarizes the client storage and bandwidth requirements for the proposed algorithms compared to the Melbourne Shuffle, the previous state-of-the-art practical shuffle.

Comparison of client storage and bandwidth for various oblivious shuffle algorithms

As shown, CacheShuffleRoot offers a roughly 4.5x improvement in bandwidth over the Melbourne Shuffle (reducing overhead from $\approx 18N$ to $\approx 4N$). Furthermore, the $K$-oblivious variants demonstrate that bandwidth overhead can be made to depend primarily on the number of touched blocks $K$ rather than the total dataset size $N$.

Conclusion

CacheShuffle represents a significant step forward in making ORAM practical. By utilizing client-side caches to manage statistical noise and optimizing for the $K$-touched block scenario, these algorithms provide up to a 5x speedup in amortized ORAM bandwidth. While the algorithms rely on randomized distributions with a negligible failure probability, their simplicity and efficiency make them highly attractive for real-world privacy-preserving storage.

Summary updated

BibTeX
@inproceedings{patel2018cacheshuffle,
  author = {Sarvar Patel and Giuseppe Persiano and Kevin Yeo},
  title = {{CacheShuffle: A Family of Oblivious Shuffles}},
  booktitle = {ICALP},
  year = {2018},
  doi = {10.4230/lipics.icalp.2018.161},
}
Figure