Move stream seeks and read checks outside of the with block
Move stream seeks and read checks outside of the with block

vertexproject/synapse,vertexproject/synapse,vivisect/synapse,vertexproject/synapse