Save some library calls

Read the whole program in one batch instead of byte-by-byte.