SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '7599f767990cfd9aaf7860bb35a84721e83f0fc02b0409f4a1ffd251701f4e2c' 
  AND token = 'xJmUaVhKptwu3sjPaRdVsshWmZ0sJrAZlQ5ZlYRww8k=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00034

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "no matching row in const table"
  }
}