Count and Less Memory Usage

The cost are calculated at the beginning of the scene and less memory is
used on the objects.