Writing of buckets to disk.