Save Encoded Data in memory before persisting to file for efficiency