As a minor comment, it's weird that you decided to make useTachyon be flag 8, but then you include it in the middle of the flags in all these expressions (after 2 and before 1). It might be better to reorder all the flags so that they're 1,2,4,8.