simplify in-memory store functions.