optimize slice-of-bytes reads/writes