Adiabatic processes need not correspond to optimal work
  The minimum work principle states that work done on a thermally isolated equilibrium system is minimal for the adiabatically slow (reversible) realization of a given process. This principle, one of the formulations of the second law, is studied here for finite (possibly large) quantum systems interacting with macroscopic sources of work. It is shown to be valid as long as the adiabatic energy levels do not cross. If level crossing does occur, counter examples are discussed, showing that the minimum work principle can be violated and that optimal processes are neither adiabatically slow nor reversible. 
A.E. Allahverdyan, Th.M. Nieuwenhuizen