optimize access to primitive arrays in Array