Improve CUDA array header allocation
Refactor