Memory efficient reads and writes