Use safer getPath option
Add break in SharedCache's get method
Implement search methods for SharedCache, fixes #4516