Cache creation of agent for SSL requests

Provides significant performance increase on all SSL requests.