Access resource attributes via sub-container on stats object

This way we keep output and use calculations separated, and if we access one of them, other does not need to be unnecessarily calculated