Set history max at 8000

bench: 3476718