Creates read-only command for optimization