optimize the IO on the virtual serial port