Finish I/O optimization for Pokemon scripts