disable unsafe optimization

resolve bug #65665, making the assumption we are just going to disable unsafe optimizations ...