Optimize snapshots.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>