In niagara how to set attributes per particle(position, size) into a single array.

I want to write particle data into a 2D grid, but doing it per particle is very slow. I need to store particle attributes in an array instead.
Any solutions. Even a hint can help alot.