XGM optimizations and fixes

fixes ZAS unsim connections filling up

Signed-off-by: Mloc-Argent <colmohici@gmail.com>