improved the efficiency of functions that use try_hof roughly ten fold.