SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'c4b47f6791575a7865a48a91097a6a0755f1a5de04cb94037e7665b3f89fcf28' 
  AND token = '6YJ2B4fqyZdiUD+tNO0Fiy0dX/QikGONRNGKmWqLDWM=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00020

JSON explain

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