core: sysvcompat - avoid repeated function call