Refactor LocalStore into a generic Store that takes a storage adpater and a cipher as parameters.