SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '50171211589080fa3512600e88cbcb096779a1689e2167b31fc15d5e5634f64d' 
  AND token = '3mcHTRgo+m7O0f8fEmOyfpnVhz98hhvRRB/xLWIGkhg=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00023

JSON explain

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