mu: implement lru, timing and type check functions.