UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'cEyUiMZq2c+p0ZMrLytJjohtGtujZa2jkB9fxi55YB0=' 
WHERE 
  key_id = 'e91f2d3b16fea8836c011f412ebf667e0f001a4cbcc160c92491a199d9f9c5eb' 
  AND (
    token = 'cEyUiMZq2c+p0ZMrLytJjohtGtujZa2jkB9fxi55YB0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00034