Avoid structure access in crypto/ts