added pmap read optimization at compile time to remove conditional.