Revert "Memory overflow when storing a large gcode file from memory"

This reverts commit 6b0391be8cdb81872f181726aa4c1aa523133c15.