Second-order mollified derivatives and Optimization