I went a bit further and removed all the 10x scaling from the encoder, now it's much simpler and just scales everything with math.log10()