Cleaning up generate_large_array()