Understanding and improving the energy efficiency of DRAM