Improving array updates