File module optimizations