Reduce string allocations in JAR classpath elements
Reduce string allocations in JAR classpath elements

Add a one-element cache of the most recently encountered
directory.

scala/scala,scala/scala,scala/scala,scala/scala,lrytz/scala,lrytz/scala,lrytz/scala,lrytz/scala,lrytz/scala,lrytz/scala,scala/scala,scala/scala