implemented caching of file sizes

performace gains