SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '40171e9a1cd055347c6e524ae337e11db448632c3e3b616876bd2cf742f41a65' 
  AND token = 'ykfOyJXQhb0zRkOLqFrPk9+zUsnTeVqYxAzAeitawP8=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00036

JSON explain

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