You need to have a working knock sensor not a bypass to prevent knocking with 87 octane, but it really depends on how aggressive the spark timing is in the computer software, TFI module sets base spark timing, the computer uses the SPOUT connection to the TFI module to advance the spark base on engine parameters, i.e. rpm, MAP pressure and throttle position.
EGR valve/system will also prevent knocking, it's primary purpose is to lower combustion temps and so reduce NOx levels as cylinders heat up under a load, and since knocking is the air/fuel mix self-igniting from the heat of compression, this lowering of combustion temps helps reduce overall cylinder temps so reduces knocking.
Octane is a heat rating, the lower the octane the lower the self-ignition temp.
You can always test it with the bypass and see, if you get pinging/knocking under load then take your foot off the gas pedal and drive it easier.
Use blended 87 octane, 10% ethanol blend tends to knock less.