Switch to streaming for larger file sizes