Fixed #165. Better performance of HistorySvc.doFind()