SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '7a4d7936cbc2b12aabbfb0fe74ed52e21df45f1b153bbd76a71233d93ec1ddcf' 
  AND token = 'Msetn6G4qoTQBc7J13k4Dyo4Nm7TnPm2dZ/hgZYcf6k=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00031

JSON explain

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