Optimize read-only workloads in SP engines