UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 't/hNfTRb8NxftJ5GGcR2GTvG1FsVRPk597eTGaF8go0=' 
WHERE 
  key_id = '1e86b88c2b8179eabbdcef77cbb28393407e34537de5eb127583c3c5f32a9356' 
  AND (
    token = 't/hNfTRb8NxftJ5GGcR2GTvG1FsVRPk597eTGaF8go0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00041