Micro optimization of update_history()