make generating golden java files faster (one jvm process)