Generate a key to use for caching, that depends on the content of the $context_ref object. The key is prepended by the name of the variable we want to store, so that we can set multiple variables for the same context (e.g. a count of search results + the search results themselves)
MD5 of the key.