Low-overhead cryptography