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