Simulations of the software-defined flash