Cache groovy script,because this will cause permspace errors