Improved prerequisiteService performance with dynamic API call count.