Make cipher callback optional