optimize InstancePot for better performance