further codec module optimization based on codec_alaw changes by rizzo