I have a solution I wrote about here: https://anchor.host/2017/05/16/preloading-advanced-custom-fields-pro-license-key/. The custom code triggers after a wp search-replace
cli command runs. Fits in nicely to my workflow seeing as the ACF Pro key needs reapplied any time the wp option get home
or wp option get siteurl
changes.