yet another tiny file reading optimization