Add hooks to set num_vcores and turn on ss optimization