Reduce number of disk writes and eliminate stat calls