Don't use java.net.URI for cache key, close #1997