Don't flush interface cache on each call of the function when looping through all gateways.