Optimize SwingWorker.