major refactoring; allow changing configuration for PBE; allow enc/dec without creating new slices