Bricks persisting and retrieving referenced bricks