Save some unneeded opens, header reads and closes; small speedup