base58: Improve DecodeBase58 performance.
Improve DecodeBase58 performance the same way as commit 3252208 did for EncodeBase58.