[encryption] use oc preferences

remove the oc_encryption table and use oc_preferences instead

cc @DeepDiver1975 as discussed here https://github.com/owncloud/core/issues/8252