Only read in the hist cache up to max_hist_cache
Add max_hist_cache cap to returned value