Change the cache_key to something more idiomatic & document it

This is a follow-up to a conversation I had with Damian the other day
about how this was layed out.

Also put the PID as the very first thing to make it easier to do a regex
match on /^$pid$;/.