Improve performance of the CPU decoder and add some details about changing decoders