Redo modulus based logging