fixing bugs in prefetch. readBsonDocument is faster over http.