Speed improvements by only reading the massive html file once.