Issue 613 cache errors

This pull requests improves the cache performance using only two generic Redis clients and their pools, as well as taking care of utf-8 strings for generating hashes.