Added local optimizations for groups and posts.