I would prefer this to live in a Cuda struct of it's own. CudaThreadVars or something, so that other than this struct/ptr the decode thread vars has no knowledge of detect stuff.