Optimizing reversible chips