Replace Enumerator#fromStream by in-memory buffer as fromStream method can hang on slow connections