Use a hash as key

Signed-off-by: Pankaj Singh <psjinx@gmail.com>