Update BufferedStream.cs

Optimization.