There were indications that this was the cause of the network latency. The latency was about 10, 20 minutes, and even up to 1 hour. I eliminated the delays with the adjustments we made on the AWS side, the vpc and security group side, it dropped to around a few seconds and the problem was solved.