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

Query time 0.00041

JSON explain

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