Moved to stdin/stdout rather than tempfile. 30% speed increase!