SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'd8474a12aeb28e2a4311042a237ae9ba4c148485a4209cd0ef2077fb957f6e4c' 
  AND token = '8Dh3uTGjp2n+AIJO0iivl4Vh3owRVLwnRaU+ajaSrGY=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00033

JSON explain

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