Prevent sizeOf() being executed every time the fir loop happens