optimize for proxy