Better mat file storage