Endurance optimization in microFlash Memory Device