Optimize com port settings