1. A method, comprising: identifying a first optimizable range in a first active file, the first active file supporting active read/access access associated with a file system, wherein the first optimizable range is a subset of data in the first active file; locking the first optimizable range; performing optimization including deduplication on the first optimizable range; aborting optimization on the first optimizable range upon detecting a write access to the first optimizable range.