get/set local storage entities with persistent references