Flash is rapidly getting to the point that you could just treat it as physical RAM and run programs directly from it, assuming the hardware is set up right to have the Flash chips on the memory bus. The MRAM people claim that they'll eventually obsolete both Flash and DRAM, so we'll eventually get there, one way or another.