Correlation encoding