Feature/flash performance

This used to be part of redraw so I moved it to the bottom here. While there's potential to refactor, I didn't want to break existing logic, and would rather we save the effort for higher priority items.