UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'M/VHtGH1en9ULqRVk7dt/KgBsfFhJY4jCtPhN0ihul8=' 
WHERE 
  key_id = 'ed8aa76cae9a30cf4a5c0be4c2f3bf1c7fc1e53033ef701ac48e3747cdbc7924' 
  AND (
    token = 'M/VHtGH1en9ULqRVk7dt/KgBsfFhJY4jCtPhN0ihul8=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00037