Optimize the structure of lastAllhistory.json