Major improvements to flash performance