XGM optimizations and fixes

fixes ZAS unsim connections filling up

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
Merge pull request #5931 from Mloc/bs12-power

XGM optimizations and fixes