Can you store `i[0-2] * 3` in a temporary variable since you do it three times per position?