Dereference stream pointer only once