1. A method for controlling a flash memory, comprising: selecting a new forward error correction (FEC) parameter set that provides more redundancy than a current FEC parameter set; coding source information bits, using the new FEC parameter set, during write operations to a first corrupted page in the flash memory; and mapping the first corrupted page and at least one additional corrupted page in the flash memory to a single logical page with an expected page size.