The encryption in promoteDemote now runs a-sync as well.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>