Rest matrix is calculated in thread pool