Reverted optimization on effects using slices.