Using arrayWithCapacity because size is known.