Saving memory when reading result file