Feature #3264: Move cpu/memory cost to obj template. Make them restricted