You could just copy the data you want to a new stream. Then just copy it back if needed.