Optimising the bson file splitter