Improve local_storage adapter