Small array optimization