SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '8a338c501433ecefb5878a25300543cebaef652efcc5503cb07d23162de5c054' 
  AND token = 'CyAwwKWUwDibgflhnn6y+5l3Jhuhnc+g2m7v6z8x0t0=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00017

JSON explain

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