[One (M8) Android Development] fizbanrapper:
Optimal for what? This is a nearly impossible question to answer. Break it until it's fixed :p Seriously that's the best way to figure it out. We don't have the same apps or usage habits. There are also a nearly unlimited number of combinations. Those choices are very difficult to communicate in a complete manner, on XDA.

To illustrate, here are my current settings:

{"name":"battery save","commands":[{"path":"\/sys\/kernel\/state_helper\/enabled","command":"echo 0 > \/sys\/kernel\/state_helper\/enabled"},{"path":"\/sys\/module\/msm_thermal_v2\/parameters\/enabled","command":"echo Y > \/sys\/module\/msm_thermal_v2\/parameters\/enabled"},{"path":"\/sys\/module\/msm_thermal_v2\/core_control\/enabled","command":"echo 0 > \/sys\/module\/msm_thermal_v2\/core_control\/enabled"},{"path":"\/sys\/module\/msm_thermal_v2\/vdd_restriction\/enabled","command":"echo 0 > \/sys\/module\/msm_thermal_v2\/vdd_restriction\/enabled"},{"path":"\/sys\/module\/msm_thermal_v2\/parameters\/limit_temp_degC","command":"echo 57 > \/sys\/module\/msm_thermal_v2\/parameters\/limit_temp_degC"},{"path":"\/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_min_freqpermission644","command":"chmod 644 \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_min_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_min_freq","command":"echo 268800 > \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_min_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_min_freqpermission444","command":"chmod 444 \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_min_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/scaling_min_freqpermission644","command":"chmod 644 \/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/scaling_min_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/scaling_min_freq","command":"echo 268800 > \/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/scaling_min_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/scaling_min_freqpermission444","command":"chmod 444 \/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/scaling_min_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/scaling_min_freqpermission644","command":"chmod 644 \/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/scaling_min_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/scaling_min_freq","command":"echo 268800 > \/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/scaling_min_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/scaling_min_freqpermission444","command":"chmod 444 \/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/scaling_min_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/scaling_min_freqpermission644","command":"chmod 644 \/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/scaling_min_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/scaling_min_freq","command":"echo 268800 > \/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/scaling_min_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/scaling_min_freqpermission444","command":"chmod 444 \/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/scaling_min_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/screen_off_max_freqpermission644","command":"chmod 644 \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/screen_off_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/screen_off_max_freq","command":"echo 268800 > \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/screen_off_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/screen_off_max_freqpermission444","command":"chmod 444 \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/screen_off_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/screen_off_max_freqpermission644","command":"chmod 644 \/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/screen_off_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/screen_off_max_freq","command":"echo 268800 > \/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/screen_off_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/screen_off_max_freqpermission444","command":"chmod 444 \/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/screen_off_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/screen_off_max_freqpermission644","command":"chmod 644 \/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/screen_off_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/screen_off_max_freq","command":"echo 268800 > \/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/screen_off_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/screen_off_max_freqpermission444","command":"chmod 444 \/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/screen_off_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/screen_off_max_freqpermission644","command":"chmod 644 \/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/screen_off_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/screen_off_max_freq","command":"echo 268800 > \/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/screen_off_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/screen_off_max_freqpermission444","command":"chmod 444 \/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/screen_off_max_freq"},{"path":"\/sys\/kernel\/fast_charge\/force_fast_charge","command":"echo 1 > \/sys\/kernel\/fast_charge\/force_fast_charge"},{"path":"\/sys\/kernel\/sched\/arch_power","command":"echo 1 > \/sys\/kernel\/sched\/arch_power"},{"path":"\/sys\/devices\/system\/cpu\/cpufreq\/interactive\/hispeed_freq","command":"echo 729600 > \/sys\/devices\/system\/cpu\/cpufreq\/interactive\/hispeed_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpufreq\/interactive\/up_threshold_any_cpu_freq","command":"echo 652800 > \/sys\/devices\/system\/cpu\/cpufreq\/interactive\/up_threshold_any_cpu_freq"},{"path":"\/sys\/devices\/virtual\/timed_output\/vibrator\/voltage_level","command":"echo 1477 > \/sys\/devices\/virtual\/timed_output\/vibrator\/voltage_level"},{"path":"\/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_max_freqpermission644","command":"chmod 644 \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_max_freq","command":"echo 1267200 > \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_max_freqpermission444","command":"chmod 444 \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/scaling_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu1\/onlinecpuonline","command":"echo 1 > \/sys\/devices\/system\/cpu\/cpu1\/online"},{"path":"\/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/scaling_max_freqpermission644","command":"chmod 644 \/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/scaling_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/scaling_max_freq","command":"echo 1267200 > \/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/scaling_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/scaling_max_freqpermission444","command":"chmod 444 \/sys\/devices\/system\/cpu\/cpu1\/cpufreq\/scaling_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu2\/onlinecpuonline","command":"echo 1 > \/sys\/devices\/system\/cpu\/cpu2\/online"},{"path":"\/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/scaling_max_freqpermission644","command":"chmod 644 \/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/scaling_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/scaling_max_freq","command":"echo 1267200 > \/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/scaling_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/scaling_max_freqpermission444","command":"chmod 444 \/sys\/devices\/system\/cpu\/cpu2\/cpufreq\/scaling_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu3\/onlinecpuonline","command":"echo 1 > \/sys\/devices\/system\/cpu\/cpu3\/online"},{"path":"\/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/scaling_max_freqpermission644","command":"chmod 644 \/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/scaling_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/scaling_max_freq","command":"echo 1267200 > \/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/scaling_max_freq"},{"path":"\/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/scaling_max_freqpermission444","command":"chmod 444 \/sys\/devices\/system\/cpu\/cpu3\/cpufreq\/scaling_max_freq"},{"path":"\/sys\/kernel\/msm_limiter\/resume_max_freq","command":"echo 729600 > \/sys\/kernel\/msm_limiter\/resume_max_freq"},{"path":"\/sys\/kernel\/msm_limiter\/suspend_min_freq","command":"echo 268800 > \/sys\/kernel\/msm_limiter\/suspend_min_freq"},{"path":"\/sys\/kernel\/power_suspend\/power_suspend_state","command":"echo 0 > \/sys\/kernel\/power_suspend\/power_suspend_state"},{"path":"\/sys\/kernel\/power_suspend\/power_suspend_mode","command":"echo 3 > \/sys\/kernel\/power_suspend\/power_suspend_mode"},{"path":"\/sys\/devices\/system\/cpu\/cpufreq\/zzmoove\/profile_number","command":"echo 5 > \/sys\/devices\/system\/cpu\/cpufreq\/zzmoove\/profile_number"},{"path":"\/sys\/devices\/system\/cpu\/sched_mc_power_savings","command":"echo 2 > \/sys\/devices\/system\/cpu\/sched_mc_power_savings"},{"path":"\/sys\/module\/intelli_plug\/parameters\/nr_run_profile_sel","command":"echo 4 > \/sys\/module\/intelli_plug\/parameters\/nr_run_profile_sel"},{"path":"\/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/UV_mV_table","command":"echo 725 730 730 730 730 750 760 770 790 800 830 840 860 905 965 1115 1145 1155 1175 > \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/UV_mV_table"},{"path":"\/sys\/kernel\/msm_limiter\/scaling_governor","command":"echo interactive > \/sys\/kernel\/msm_limiter\/scaling_governor"},{"path":"\/sys\/kernel\/msm_limiter\/limiter_enabled","command":"echo 1 > \/sys\/kernel\/msm_limiter\/limiter_enabled"},{"path":"\/sys\/kernel\/msm_limiter\/resume_max_freq_0","command":"echo 883200 > \/sys\/kernel\/msm_limiter\/resume_max_freq_0"},{"path":"\/sys\/kernel\/msm_limiter\/resume_max_freq_1","command":"echo 883200 > \/sys\/kernel\/msm_limiter\/resume_max_freq_1"},{"path":"\/sys\/kernel\/msm_limiter\/resume_max_freq_2","command":"echo 883200 > \/sys\/kernel\/msm_limiter\/resume_max_freq_2"},{"path":"\/sys\/kernel\/msm_limiter\/suspend_min_freq_1","command":"echo 268800 > \/sys\/kernel\/msm_limiter\/suspend_min_freq_1"},{"path":"\/sys\/kernel\/msm_limiter\/suspend_min_freq_2","command":"echo 268800 > \/sys\/kernel\/msm_limiter\/suspend_min_freq_2"},{"path":"\/sys\/kernel\/msm_limiter\/suspend_min_freq_3","command":"echo 268800 > \/sys\/kernel\/msm_limiter\/suspend_min_freq_3"},{"path":"\/sys\/kernel\/msm_limiter\/scaling_governor_0","command":"echo smartmax_eps > \/sys\/kernel\/msm_limiter\/scaling_governor_0"},{"path":"\/sys\/kernel\/msm_limiter\/scaling_governor_1","command":"echo smartmax_eps > \/sys\/kernel\/msm_limiter\/scaling_governor_1"},{"path":"\/sys\/kernel\/msm_limiter\/scaling_governor_2","command":"echo smartmax_eps > \/sys\/kernel\/msm_limiter\/scaling_governor_2"},{"path":"\/sys\/kernel\/msm_limiter\/scaling_governor_3","command":"echo smartmax_eps > \/sys\/kernel\/msm_limiter\/scaling_governor_3"},{"path":"\/sys\/module\/cpu_boost\/parameters\/sync_threshold","command":"echo 268800 > \/sys\/module\/cpu_boost\/parameters\/sync_threshold"},{"path":"\/sys\/module\/cpu_boost\/parameters\/input_boost_freq","command":"echo 268800 > \/sys\/module\/cpu_boost\/parameters\/input_boost_freq"},{"path":"mpdecision","command":"stop mpdecision"},{"path":"\/sys\/devices\/system\/cpu\/cpu1\/online","command":"echo 1 > \/sys\/devices\/system\/cpu\/cpu1\/online"},{"path":"\/sys\/devices\/system\/cpu\/cpu2\/online","command":"echo 1 > \/sys\/devices\/system\/cpu\/cpu2\/online"},{"path":"\/sys\/devices\/system\/cpu\/cpu3\/online","command":"echo 1 > \/sys\/devices\/system\/cpu\/cpu3\/online"},{"path":"\/sys\/kernel\/zen_decision\/enabled","command":"echo 0 > \/sys\/kernel\/zen_decision\/enabled"},{"path":"\/sys\/kernel\/msm_limiter\/suspend_max_freq","command":"echo 268800 > \/sys\/kernel\/msm_limiter\/suspend_max_freq"},{"path":"\/sys\/block\/mmcblk0\/queue\/scheduler","command":"echo row > \/sys\/block\/mmcblk0\/queue\/scheduler"},{"path":"\/sys\/block\/mmcblk1\/queue\/scheduler","command":"echo row > \/sys\/block\/mmcblk1\/queue\/scheduler"},{"path":"\/proc\/sys\/vm\/laptop_mode","command":"echo 1 > \/proc\/sys\/vm\/laptop_mode"},{"path":"\/dev\/block\/zram0swapoff","command":"swapoff \/dev\/block\/zram0 > \/dev\/null 2>&1"},{"path":"\/sys\/block\/zram0\/reset","command":"echo 1 > \/sys\/block\/zram0\/reset"},{"path":"\/sys\/block\/zram0\/disksize","command":"echo 408944640 > \/sys\/block\/zram0\/disksize"},{"path":"\/dev\/block\/zram0mkswap","command":"mkswap \/dev\/block\/zram0 > \/dev\/null 2>&1"},{"path":"\/dev\/block\/zram0swapon","command":"swapon \/dev\/block\/zram0 > \/dev\/null 2>&1"},{"path":"\/sys\/kernel\/sched\/gentle_fair_sleepers","command":"echo 0 > \/sys\/kernel\/sched\/gentle_fair_sleepers"},{"path":"\/sys\/module\/sync\/parameters\/fsync_enabled","command":"echo N > \/sys\/module\/sync\/parameters\/fsync_enabled"},{"path":"\/sys\/devices\/fdb00000.qcom,kgsl-3d0\/kgsl\/kgsl-3d0\/devfreq\/governor","command":"echo simple_ondemand > \/sys\/devices\/fdb00000.qcom,kgsl-3d0\/kgsl\/kgsl-3d0\/devfreq\/governor"},{"path":"\/sys\/module\/intelli_plug\/parameters\/intelli_plug_active","command":"echo 1 > \/sys\/module\/intelli_plug\/parameters\/intelli_plug_active"},{"path":"\/sys\/kernel\/msm_limiter\/resume_max_freq_3","command":"echo 883200 > \/sys\/kernel\/msm_limiter\/resume_max_freq_3"}

That's a lot of crap!

Don't toggle "set on boot" and a reboot will clear any mistakes.