Enhance cuda array creation by using a pinned staging memory for copying small gpu array metadata header