Performance improvements to split mongo and old-mongo, based on import/export tests.

Builds on #5131.

Diff: https://github.com/cpennington/edx-platform/compare/cpennington:split/prod-import-export-tests...split/import-export-performance
LF EOF