Fix data building issues. Implement data compressing for large files