Writables optimizations and fixes