Optimization of mcview_hexedit_save_changes() function.