reading file version 0 as well and allocating less memory for uncompressed data