SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '417a37b591019035e46ed707ea9db9ce783a8727a8a4c2893f3a3b499db66161' 
  AND token = 'sj8r7UfiFLGz6YC6qtpRfLIX0peIOCNmhrySd9qWV5I=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00026

JSON explain

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