Improve critical part of MongoDB connection wrt data consistency