cache_key needs hash of the def itself too
Some imports no longer needed