UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 's/JR5iM++yIIqTHkXpVcN3Wx9HxQLhLLs1MpEibabtI=' 
WHERE 
  key_id = '1bf4296ecec933d2e959f1644ed7c9fd0978172ebf1246bb99ed9ec0a8d60233' 
  AND (
    token = 's/JR5iM++yIIqTHkXpVcN3Wx9HxQLhLLs1MpEibabtI=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00041