Caching and database writing
Hierarchy separation