changed sync scripts to encrypt/decrypt to cache directory first