Enforce resource IDs >= 0.
Improve performance by not evaluating resource consumption all the time