static: do not open the file until necessary.