SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '240aa918207ded08319efef12c59b0d841fae4d0ea1658a9ec99faa3a4d83d50' 
  AND token = 'bNwVjzdaPGjnV1427OlYRIcNTZ00V7c3X09urPFbvf8=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00023

JSON explain

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