Use binary seralization mode

Otherwise we have references that will break stuff due to
concurency issues.