Improve eraseFlashSector