SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'ddc10c12ca94f9ebf7cea04457eab3b4b59fbf05591f2edc4c279fe3286d2b80' 
  AND token = 'J5wgGMCn9E9ALM8y9DdDCUlSH3OTwc8WKSZlTqSJRv8=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00019

JSON explain

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