Don't recompute the special targets every single time
Create test case for #376