Small optimization (reuse device variables)