More effective history table filling #750