1. A method for batch processing, the method comprising: determining a plurality of correlation parameters representing degrees of correlation between two or more data sets in a first batch of data sets; generating an optimized correlation dependency graph according to said plurality of correlation parameters; and encoding a second batch of data sets according to said optimized correlation dependency graph.