1. An apparatus, comprising: a decoder configured to decode codewords; decoder firmware configured to control one or more decoding parameters of the decoder; and wherein the decoder comprises a recovery unit configured to store recovery instructions, wherein the decoder is further configured to execute the stored recovery instructions without interaction with the decoder firmware when the decoding fails.