Change file writing strategy to multiple JSONs instead of a single one.