avoiding an unnecessary extra recompilation step in doOnce handling