Implemented pure python implementation for fallback encrypted storage