Optimize cleanData: allow direct access to data_priv for cleanup