adding optimization check for applying SFFI