Change MaxEncodedLen from bytes to bits