Lazily initialize Resources' fields.

This results in ~10% reduction in test run time.