Fixing issue-102. Add test cases also. Fix - Index caches against domain name rather than hash of encodings
Removing an unused variable