Delete invalid connection keys before request is made