Remove local temp, use better temporary file