SMS dit: Cavity-assisted nondestructive laser cooling of atomic qubits