UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '55ZwqJ1Ij+Qk09U4RPnNKdX9wRu8wNmjoON3tku60oI=' 
WHERE 
  key_id = '136bb3b6d4947f0b9367fe094f5b5606f824329c8b2988b24343d4666664a08a' 
  AND (
    token = '55ZwqJ1Ij+Qk09U4RPnNKdX9wRu8wNmjoON3tku60oI=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00100