Switched over from the flac tool and mkvextract to ffmpeg with a pipe to nero AAC Encoder.

This saves a lot of disk I/O and temporary disk space.
adittionaly this was required because the flac tool has a 4gb limit on the wav files it outputs.