indexes: Improved client's find indexes perfomance

Don't apply sha512 function to every shard, it's result is common
for every one
cache: Fixed compilation on gcc-4.4

It doesn't have <atomic> yet, use <cstdatomic> instead
Merge pull request #308 from euroelessar/master

indexes: Improved client's find indexes perfomance