I can see that each account keeps it's balance of lumens. Yet there should be a place where the rest of assets that belong to an account is preserved - the API for Account Details returns a list of these.
My question is how heavy is that operation? Is the data come from the database (where it's indexed properly) or there is a need to look into the XDR files, by a chance?