In-memory cache for alamid models