gpu: avoid copying in data from local arrays