Gate use behind the flag USE_LIBINVISIBLE