stdout()/stderr() optimized