Implement connection reuse for dirac.