Only minify what is needed

As discussed.