Add cache support for export xml to binary