implement cache for WS response