If you have a ridiculously bloated and buggy Java app, writing an optimizing compiler doesn't sound like the most effective solution.