Optimize logic around sysctl.conf