Fix performance of 'user_ips' table deduplication background update