Optimizations to CUDA version of CustomManyParticleForce