Add sane limit to expanding files (1e6)