The only solution I found is to build a new tool, and that required a complete rewrite of existing optimizers and significant changes to underlying libraries.
It's not automatic then, which is critical for batch processing, and does not solve all the problems, and create new usability problems for most users.