public static void FillCache(int decimals)
{
int step = 1;
switch (decimals) {
case 0:
step = 100;
break;
case 1:
step = 10;
break;
}
for (int i = 1; i < byteCacheSize; i += step) {
if (byteCache[i] != null) continue;
byteCache[i] = ConvertToBytes(i);
}
}