use persistent map in barista_core