Hashing dependencies for memory optimization on Redis

The default hash size is 1 million keys (~200Mb on Redis)
Hardening tests for hashing and recovery