Is recalculating the array on each call ok performance-wise?