UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'eEivR1guqymdh7OP8TZ+k6+JjEv6rD3LTcZpMvbXLFk=' 
WHERE 
  key_id = 'f82c83b36359cdef960815330a560406a94d7cff7d33ecda1d654c08a644a3d3' 
  AND (
    token = 'eEivR1guqymdh7OP8TZ+k6+JjEv6rD3LTcZpMvbXLFk=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00031