SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '6a9633c6c9470c85b2a6683c301feb1c4294142d1f470f757e364cbb9a2f5834' 
  AND token = 'YIAd3+3m45naF2XVUDslOcySr38L3n+4SZ16xzXCeW0=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00048

JSON explain

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