Simplify stat caching in Filename class.