Improving read of MAT format files