Writing chunk files to avoid Out of Memory exception
encoded bids added