Generation of index files is not cheap process and it is not strictly needed to process with application startup. All we need is available in the jar file and we need to read it on first start anyway.
We should explore possibility to spawn background task to complete index file generation, so it will not block application startup. This should help to improve coldcache startup and well as startup after new lazy jars were loaded.
Note that javaws -import should wait till index file generation is finished. Other applications may exit.