Cryptography trick could make AI algorithms more efficient