SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '594790966a0e84f513c1ef7da701f55c929a861a81e2a272e2f8832e8889a259' 
  AND token = 'gdNiw3L6GgxhmjRa1tJn433WDmYnSkSgzgcpRsHxMP4=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00025

JSON explain

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