support kwargs in the json memoize decorator