SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '672bb5e42bd9d551e2794ec72b856573f10d8adf4656d7b7c558e9a4f5ad9e91' 
  AND token = 'h8Yvb7rg2yXmDP8Y05DuPOPPY5h2UVs2h4rpe6i2II4=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00024

JSON explain

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