Initialise cache instance variables correctly

If you assign to @something in the class context it creates a class
instance variable not an object instance variable. Probably not what was
intended.
Cache registries for lifetime of app process

The registries need to exist across http requests, otherwise they're not
really doing any useful caching.