Speed up fragment determination using parital chemical formula caching