Battling Persistent Hacks At The Flash Level