I don't think there isn't any sensors that can sense what octane fuel you are using and then advance the timing. Pretty much all knock sensors are there to sense bad gas and still allow proper operation if you do end up using a lower octane fuels that are below the recommended octane rating. The Camry V6 only differs in being quite sensitive so that when it detects irregular knock (which shouldn't happen at all), it knows something is wrong and it pulls back timing for a lengthly period of time; perhaps one driving trip, or maybe after 5 mins since the knock was detected, etc..
You will not gain power by using higher octane fuels with a stock ECU. The stock ECU will never advance timing, but rather allow it to restore and run on optimum ignition maps. If you match the manufacturer's recommended octane level, your car will be knock free and that's the best power the engine will make. You can create a good habit of putting gas with slightly higher octane than the recommended rating to allow a larger margin of safety in case your engine runs slightly different over time (carbon deposits, faulty PCV, poor cooling system, etc...)
Most guys don't get the point of high octane fuels. If your engine has mild compression, mild boost, etc.. regular pump gas will probably allow the engine to make the best power with fuel and ignition tuning. Too much timing and the engine will surpass the optimum combustion period (MBT) and you will make lesser power instead. To use higher octane fuels, you must be running a lot of boost or a lot of compression to the extent that the engine will detonate before it reaches MBT (knock-limited tuning). In this situation, higher octane fuels will allow more timing without knocking thus creating more power