first working variant with MemCache