When a resource needs to access some specific variable MANY times, it becomes efficient to store that variable in local memory over having to access the global memory space, and in the case of CreateThread and Wait, having to check the Citizen global memory space for that function.