Improved performance for documents and projects import