Add global thread pool to improve performance.