Make UDP packet handling more efficient.