Storing volatile data in Flash Memory

Only option I can think of is to use an external memory module. May I suggest buying an SD card module (like the one Adafruit sells), hooking it up and then using Serial.read() and saving all the data to the card and after all the data is on the card, then access it through your program. Total cost around 20 USD and you can have gigabytes of storage.