I have a system I'm working on that has almost all of its logic in SQL Server stored procedures. As part of improving the development practices we want to move to a continuous delivery model using feature flags (aka toggles) to enable functionality in production.
How can I write the stored procs so that they check the flags efficiently and don't add load to the database by hammering a config table every time the procs are called?