UDP Delays since last request

During my testing (calling a function on the electron) I found the following

If the last request was <10 seconds ago,
Average Response time = 2 seconds (great)

If the last request was between 10 and 19 seconds ago,
Average Response time = 4.2 seconds (passable)

If the last request was longer than 19 seconds ago,
Average Response time = 6.6 seconds (not ok for my application) and i get lots of 400 errors and alot of 30 second timeouts intermittently