Finish I/O optimization for all scripts (finally!)