[PATCH 02/19] Set up devices before trying to decrypt them. (#865247, #867533)