Treat the special case of regular files more efficiently.