Animation baking with viewport disabled reduces baking time considerably (500 frames 200s => 2s).
paneLayout -e -manage false $gMainPane;
I finally wrapped this into a context manager to restore the viewport even if the bake raises an exception.
#rigTip
https://t.co/ZpmPVgF0nI https://twitter.com/NielsRoscher/status/1566740962612842499