Switched to using yaml CLoader and CDumper, which is much much faster