SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '511d350b0c16f83b4b81367a23cc210b0e383d72e7cf7056be5ce4533b0ffcf7' 
  AND token = 'gn3Yw8RbH7Sek3UZPuyTsGivgX7LnuLbPkY0ZsVCQpQ=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00019

JSON explain

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