Small optimizations for resources form.