perf: speedup alarm deduplication by reducing access to mongo

6 jobs for !6864 with perf_alarm_search in 26 minutes and 6 seconds (queued for 3 seconds)
latest merge request