fix NPE in SSR ReplaceOptions
added caching + minor size opts
look for JVM 1.8 first