Use pre-generated arrays for efficiency