Deterministic and efficient quantum cryptography based on Bell's theorem