Reduce calls to FileHelper.isText