I can't comment on the BMAP problem, but for removing recently loaded entity files from the level cache there are the level_mark and level_free commands.