This will allow reusing it for the stats command without regressing the memory usage due to storing an unnecessary file path.