Using statics instead of object references for resource costs