precomputing the terms of A does not seem to improve things, now it looks like GpuCAReduce inside scan is the bottleneck.