Handle long size data using temporary file