Remove dependency to gsGlobal for raw functions