As part of fix for JDK-8041697: CompiledScript slower when eval with binding Context.MultiGlobalCompiledScript used to cache "script" method's handle and strict mode flag. That seems missing with jdk9-dev/nashorn tip code. Please revisit if we can make :createProgramFunction method may be cached.