Updated compute_xrdmic to reduce memory requirements