Guard against reading huge files.