Fixed premature recycling by saving to temp files