Pull device id from cached variable in getDeviceId