Reduce ide stack usage by reorganizing ata calls.