memoizes PatternDocument & BoardDocument
adds minor perfomance boost to board import