Simulations of RRAM-based SSDs