Saving memory to internal / external flash

SD is supposed to wear-level too. There is a controller with semi-complex code in SD. You deal with it, not the flash.

If you think different, look up SD.