Replace secure option with returning value if it's a Proc