Keep features over reset
Set the drive's keep_features_over_reset flag.

Setting this enables the drive to retain the settings for Read look-readahead, Reprogram best PIO mode, Standby timeout, Write caching and Transfert Mode over a soft reset (as done during the error recovery sequence).

Not all drives support this feature.