stream_encoder : Improve selection of residual accumulator width