Working mnesia cache module