Optimize Crypto's Base64 encode/decode