Avoid unnecessary calls to Proc.new