memory usage optimizations for read and write operations

We usually do ```palloc(count * sizeof(type))```, so ```palloc(columnCount * sizeof(bool))```.