Better handling of NetworkStream read buffer