Basic in-memory implementation