Reduce # of file I/O