Optimized array initialization