precompute_feature_info function

Pre-compute feature information