Import speedups from _load_stream into _load_new_stream for consistency.