Managing file size for performance