Smart proxy