Both the classic API as well as the MAXON API provide advanced data containers and collections to store arbitrary data.
For an overview see Classic API Containers and MAXON API Containers & Data Collections.