Use cipher mode rather than global one