refactor precomputing of knowledge derived data