Use in-memory metadata instead of the database for compile-flags and the like