Semi-counterfactual cryptography