fs: history: do not store history list in memory
Pre-fill the direntry cache with all the sub-entries once the history has been retrieved.