perf: merge client status in linear time (#2700) Co-authored-by: potatosips <potatosips@users.noreply.github.com>