Adds a simple cache using the registry. Re: #30