Prevent re-opening connections constantly.