Reimplement connection cache.