cache script after compiling