Update ImportScript.java

Improved memory efficiency.