Speed searching up a bit

Reuse ElasticSearch hits length via hits.total and cache it rahter than calculation length every iteration.