Improve DefaultJavaResourceLocator

* Do not keep SquidIndex in memory to reduce consumption.

* Reduce number of requests to OS about files for better performance.