Added secure flag to socket ids