optimize: add global var to store frequently used var and use mmap instead of calloc to allocate cidmap
previously, cidmap and its meta data store in same page, now we store them seperatly
use next adaption to choose cid