HCSVLAB-574: __REDO__ Improved retrieving documents performance. Also added hidden timing info at the bottom of the pages.