10x the code? Easy solution. Throttle unpaid customers or put a quota.
Either way, paid customers should not be affected.