[library] Remove isItemInMemory() from public API