Improved speed in demo script loading