Adding more optimizations, mainly in event detail and profile