* Fixes an ugly hack, where the codec was initialized in the InitCheck and prevented the method to be const too.