Directly (de-)serialize the bayes words map to lower memory requirements and speed up the process.