The KV pairs and a little bit of meta-data are stored in datafiles, which are append-only log files. A single Bitcask instance may contain a large number of datafiles, fnf but only one of them will be open for writing and actively used; the others are thought of as immutable and are only used for reads.