If you use CTEs and json_agg then you can combine your separate queries into one query without redundant data.