Since heroes return to the entrance shortly after being trapped, its a good idea to trap them as late in the dungeon as possible to waste their time. Also, its good to lure heroes into the side rooms without locking them as often as possible to further waste their time. Its best only to use the side room's locks when a hero is walking down a path where their associated trap is still on cooldown.