Save weights to flatfile as too big for mongoDB