improve ranged stream read