optimized connection_storage_delete() and alloc_context()