Fix plan comparison function (disable cache)