btob64 optimization