Efficient solid state memories for quantum cryptography