Configurable buffer sizes for read/write