(readColdStartFile): Allocate memory only after the file is opened