This feels like the same functionality as _powersOf58.
Also caching the table might be a good idea so we do not have to re-calculate it every time we do this!