Implementing a segmentation-based oblivious RAM