Improve database query performance when recording retry intervals for remote hosts.