Gain and squelch plus demod optimizations