Improved performance of the file dialog