The raw index buffer content is not guaranteed to be aligned

* Ensure alignment by copying the content into a structure on the stack