Use device global memory when possible