Aztec optimised encoding branch.