Not sure what you are referring to.  I mean exactly the code I wrote in place of the block that I commented on.  If you already have the fileId from the infotag, then fileId >= 0 so the if (fileId < 0) blocks aren't executed, thus no db lookup other than the streamdetails call.