SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '512077c05a358391dd139a3b299e8630890ed978ec290aeb7b2f1956d828db43' 
  AND token = 'k0iTNcaJr9qHEWs6qKIdsPNNo3YHZFBPhsY6mmvCKYA=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00043

JSON explain

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