Array optimization.