use hash for cache key

http://manage.dimagi.com/default.asp?110304