You are not the first suggesting such a feature:
https://www.bountysource.com/issues/1474343-support-for-file-encryption-e-g-non-trusted-servers