ArrayAdapter optimization.