use open() insteaf of readFile() to speed up the load check.