memory usage optimizations for read and write operations

```*``` should go with variable name. ```ColumnData * columnData``` -> ```ColumnData *columnData```.