Optimize LocalSolver connection