Implement caching of registry searches (closes #319).