cache socket according ssl connection time