Most of the methods in this file can be more fine-grained. Putting entire action in a single transaction decrease parallelism and affect the performance.