firmware optimization