UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '/QAACwT8OWvPUKa7JUxLUjQ5tSKSrDt4UtSAfZS9tKg=' 
WHERE 
  key_id = 'e461f3eeac659821ae53ddb58c93ddde89be35d6bb7f92ad5ec5362df9900c9e' 
  AND (
    token = '/QAACwT8OWvPUKa7JUxLUjQ5tSKSrDt4UtSAfZS9tKg=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00033