fix perf issue with recursive constant pool constants

1 job for recursive-condy-perf in 11 minutes and 8 seconds (queued for 8 seconds)