add profiling calls
fix layout xml cache logic to prevent saving on every load