The system should already ensure that you only have keys for what you should, so perhaps use this to simplify database queries for content