Added a filesize check to local dataset cache